1
0
Fork 0
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:
Mikhail Khodjaiants 2003-03-28 23:05:44 +00:00
parent 9394148420
commit b6bc4d280b
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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,