Package com.lightstreamer.log
Interface Logger
public interface Logger
Interface to be implemented to consume log from the library. 
Instances of implemented classes are obtained by the library through the LoggerProvider instance set on
Instances of implemented classes are obtained by the library through the LoggerProvider instance set on
LightstreamerClient.setLoggerProvider(com.lightstreamer.log.LoggerProvider).- 
Method SummaryModifier and TypeMethodDescriptionvoidReceives log messages at Debug level and a related exception.voidReceives log messages at Error level and a related exception.voidReceives log messages at Fatal level and a related exception.voidReceives log messages at Info level and a related exception.booleanChecks if this logger is enabled for the Debug level.booleanChecks if this logger is enabled for the Error level.booleanChecks if this logger is enabled for the Fatal level.booleanChecks if this logger is enabled for the Info level.booleanChecks if this logger is enabled for the Trace level.booleanChecks if this logger is enabled for the Warn level.voidReceives log messages at Trace level and a related exception.voidReceives log messages at Warn level and a related exception.
- 
Method Details- 
errorReceives log messages at Error level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
warnReceives log messages at Warn level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
infoReceives log messages at Info level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
debugReceives log messages at Debug level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
traceReceives log messages at Trace level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
fatalReceives log messages at Fatal level and a related exception.- Parameters:
- line- The message to be logged.
- exception- An Exception instance related to the current log message.
 
- 
isTraceEnabledboolean isTraceEnabled()Checks if this logger is enabled for the Trace level.
 The property should be true if this logger is enabled for Trace events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Trace statements. Note that even if the property is false, Trace log lines may be received anyway by the Trace methods.- Returns:
- true if the Trace logger is enabled
 
- 
isDebugEnabledboolean isDebugEnabled()Checks if this logger is enabled for the Debug level.
 The property should be true if this logger is enabled for Debug events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Debug statements. Note that even if the property is false, Debug log lines may be received anyway by the Debug methods.- Returns:
- true if the Debug logger is enabled
 
- 
isInfoEnabledboolean isInfoEnabled()Checks if this logger is enabled for the Info level.
 The property should be true if this logger is enabled for Info events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Info statements. Note that even if the property is false, Info log lines may be received anyway by the Info methods.- Returns:
- true if the Info logger is enabled
 
- 
isWarnEnabledboolean isWarnEnabled()Checks if this logger is enabled for the Warn level.
 The property should be true if this logger is enabled for Warn events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Warn statements. Note that even if the property is false, Warn log lines may be received anyway by the Warn methods.- Returns:
- true if the Warn logger is enabled
 
- 
isErrorEnabledboolean isErrorEnabled()Checks if this logger is enabled for the Error level.
 The property should be true if this logger is enabled for Error events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Error statements. Note that even if the property is false, Error log lines may be received anyway by the Error methods.- Returns:
- true if the Error logger is enabled
 
- 
isFatalEnabledboolean isFatalEnabled()Checks if this logger is enabled for the Fatal level.
 The property should be true if this logger is enabled for Fatal events, false otherwise.
 This property is intended to lessen the computational cost of disabled log Fatal statements. Note that even if the property is false, Fatal log lines may be received anyway by the Fatal methods.- Returns:
- true if the Fatal logger is enabled
 
 
-