Class: RemoteAppender

RemoteAppender

RemoteAppender extends SimpleLogAppender and implements the publishing of log messages by sending them back to Lightstreamer Server. The Server will log the messages through its "LightstreamerLogger.webclient" logger at DEBUG level.
Note that the delivery of some log messages to the Server may fail.

new RemoteAppender(level, category, lsClient)

Constructor for RemoteAppender.
Parameters:
Name Type Description
level String The threshold level at which the RemoteAppender is created. It should be one of "WARN", "ERROR" and "FATAL". The use for "DEBUG" and "INFO" levels is not supported on this appender.
category String The category this appender should listen to. See SimpleLogAppender#setCategoryFilter.
lsClient LightstreamerClient An instance of LightstreamerClient object used to send log messages back to the server.
Throws:
if the LightstreamerClient parameter is missing
Type
IllegalArgumentException

Extends

Method Summary

extractLog
Disabled
log
Publish a log message by sending it to Lighstreamer server by LighstreamerClient object.

Inherited Methods

Method Detail

extractLog()

Disabled

log(category, level, mex)

Publish a log message by sending it to Lighstreamer server by LighstreamerClient object. Specific layout: 'LS_log1=HH:mm:ss.ccc - category : message'.
Parameters:
Name Type Description
category The logger category that produced the given message.
level The logging level of the given message. It should be one of DEBUG INFO WARN ERROR FATAL constants values.
mex The message to be logged. It could be a String instance, an Error instance or any other object, provided that it has a toString method.