Removed a hack of using toString() on AuditEvent in the default logger.

This commit is contained in:
Oliver Burn 2002-04-25 05:30:37 +00:00
parent 3ded17ac3d
commit 2279ec2a48
2 changed files with 3 additions and 10 deletions

View File

@ -109,13 +109,4 @@ public class AuditEvent
return mMessage;
}
/**
* return an Emacs compliant line with the following pattern:
* <file>:<line>: <message>
* @return informative line representing the event.
*/
public String toString()
{
return mFileName + ":" + getLine() + ": " + getMessage();
}
}

View File

@ -71,7 +71,9 @@ public class DefaultLogger
/** @see AuditListener **/
public void addError(AuditEvent aEvt)
{
mWriter.println(aEvt);
// Print an Emacs compliant line.
mWriter.println(aEvt.getFileName() + ":" + aEvt.getLine()
+ ": " + aEvt.getMessage());
}
/** @see AuditListener **/