Methods Summary |
---|
public void | addListener(LoggerChannelListener l)Add a LoggerChannelListener to this LoggerChannel
|
public Logger | getLogger()Retrieve the parent Logger object for this LoggerChannel.
|
public java.lang.String | getName()Returns the name of the Logger Channel
|
public boolean | isEnabled()Indicates whether or not logging is enabled - use to optimise calls to
the log methods that require resources to construct the message to be
logged.
Note that this doesn't apply to alerts - these will always be handled
|
public void | log(java.lang.Object relatedTo, java.lang.String data, java.lang.Throwable error)Log an error against an object.
|
public void | log(java.lang.Object[] relatedTo, java.lang.String data, java.lang.Throwable error)Log an error against a list of objects
|
public void | log(java.lang.Object[] relatedTo, java.lang.String data)Log an error against a list of objects with implicit type {@link #LT_INFORMATION}
|
public void | log(java.lang.Object relatedTo, java.lang.String data)Log an error against an object with implicit type {@link #LT_INFORMATION}
|
public void | log(int log_type, java.lang.String data)Log a message of a specific type to this channel's logger
|
public void | log(java.lang.String data)log text with implicit type {@link #LT_INFORMATION}
|
public void | log(java.lang.Throwable error)log an error with implicit type of {@link #LT_ERROR}
|
public void | log(java.lang.String data, java.lang.Throwable error)log an error with implicit type of {@link #LT_ERROR}
|
public void | log(java.lang.Object[] relatedTo, int log_type, java.lang.String data)Log a string against a list of objects
|
public void | log(java.lang.Object relatedTo, int log_type, java.lang.String data)Log an error against an object.
|
public void | logAlert(int alert_type, java.lang.String message)raise an alert to the user, if UI present
Note that messages shown to the user are filtered on unique message content
So if you raise an identical alert the second + subsequent messages will not be
shown. Thus, if you want "identical" messages to be shown, prefix them with something
unique like a timestamp.
|
public void | logAlert(java.lang.String message, java.lang.Throwable e)Alert the user of an error
|
public void | logAlertRepeatable(int alert_type, java.lang.String message)Raise an alert to the user, if UI present. Subsequent, identical messages
will always generate an alert (i.e. duplicates won't be filtered)
|
public void | logAlertRepeatable(java.lang.String message, java.lang.Throwable e)Raise an alert to the user, if UI present. Subsequent, identical messages
will always generate an alert (i.e. duplicates won't be filtered)
|
public void | removeListener(LoggerChannelListener l)Remove a reviously added LoggerChannelListener
|
public void | setDiagnostic()This causes the channel to also write to logs/name files in a cyclic
fashion (c.f. the debug_1/2._log files)
|