mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
Added time stamp to the trace messages.
This commit is contained in:
parent
9394148420
commit
b6bc4d280b
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-03-28 Mikhail Khodjaiants
|
||||
Added time stamp to the trace messages.
|
||||
* MIPlugin.java
|
||||
|
||||
2003-03-28 Mikhail Khodjaiants
|
||||
Correction of the previous patch.
|
||||
* MIAsm.java
|
||||
|
|
|
@ -6,6 +6,7 @@ package org.eclipse.cdt.debug.mi.core;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.text.MessageFormat;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.Session;
|
||||
|
@ -233,7 +234,9 @@ public class MIPlugin extends Plugin {
|
|||
}
|
||||
|
||||
public void debugLog(String message) {
|
||||
if (getDefault().isDebugging()) {
|
||||
if (getDefault().isDebugging()) {
|
||||
// Time stamp
|
||||
message = MessageFormat.format( "[{0}] {1}", new Object[] { new Long( System.currentTimeMillis() ), message } );
|
||||
// This is to verbose for a log file, better use the console.
|
||||
// getDefault().getLog().log(StatusUtil.newStatus(Status.ERROR, message, null));
|
||||
// ALERT:FIXME: For example for big buffers say 4k length,
|
||||
|
|
Loading…
Add table
Reference in a new issue