Package com.lightstreamer.log
Interface Logger
-
public interface LoggerInterface to be implemented to consume log from the library.
Instances of implemented classes are obtained by the library through the LoggerProvider instance set oncom.lightstreamer.client.LightstreamerClient#setLoggerProvider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(java.lang.String line)Receives log messages at Debug level.voiddebug(java.lang.String line, java.lang.Throwable exception)Receives log messages at Debug level and a related exception.voiderror(java.lang.String line)Receives log messages at Error level.voiderror(java.lang.String line, java.lang.Throwable exception)Receives log messages at Error level and a related exception.voidfatal(java.lang.String line)Receives log messages at Fatal level.voidfatal(java.lang.String line, java.lang.Throwable exception)Receives log messages at Fatal level and a related exception.voidinfo(java.lang.String line)Receives log messages at Info level.voidinfo(java.lang.String line, java.lang.Throwable exception)Receives log messages at Info level and a related exception.booleanisDebugEnabled()Checks if this logger is enabled for the Debug level.booleanisErrorEnabled()Checks if this logger is enabled for the Error level.booleanisFatalEnabled()Checks if this logger is enabled for the Fatal level.booleanisInfoEnabled()Checks if this logger is enabled for the Info level.booleanisWarnEnabled()Checks if this logger is enabled for the Warn level.voidwarn(java.lang.String line)Receives log messages at Warn level.voidwarn(java.lang.String line, java.lang.Throwable exception)Receives log messages at Warn level and a related exception.
-
-
-
Method Detail
-
error
void error(@Nonnull java.lang.String line)Receives log messages at Error level.- Parameters:
line- The message to be logged.
-
error
void error(@Nonnull java.lang.String line, @Nonnull java.lang.Throwable exception)Receives 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.
-
warn
void warn(@Nonnull java.lang.String line)Receives log messages at Warn level.- Parameters:
line- The message to be logged.
-
warn
void warn(@Nonnull java.lang.String line, @Nonnull java.lang.Throwable exception)Receives 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.
-
info
void info(@Nonnull java.lang.String line)Receives log messages at Info level.- Parameters:
line- The message to be logged.
-
info
void info(@Nonnull java.lang.String line, @Nonnull java.lang.Throwable exception)Receives 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.
-
debug
void debug(@Nonnull java.lang.String line)Receives log messages at Debug level.- Parameters:
line- The message to be logged.
-
debug
void debug(@Nonnull java.lang.String line, @Nonnull java.lang.Throwable exception)Receives 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.
-
fatal
void fatal(@Nonnull java.lang.String line)Receives log messages at Fatal level.- Parameters:
line- The message to be logged.
-
fatal
void fatal(@Nonnull java.lang.String line, @Nonnull java.lang.Throwable exception)Receives 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.
-
isDebugEnabled
boolean 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.
-
isInfoEnabled
boolean 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.
-
isWarnEnabled
boolean 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.
-
isErrorEnabled
boolean 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.
-
isFatalEnabled
boolean 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.
-
-