Removed a hack of using toString() on AuditEvent in the default logger.
This commit is contained in:
parent
3ded17ac3d
commit
2279ec2a48
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 **/
|
||||
|
|
|
|||
Loading…
Reference in New Issue