Package adaa.analytics.rules.utils
Class Logger
java.lang.Object
adaa.analytics.rules.utils.Logger
Auxiliary singleton class for logging.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStream(PrintStream ps, Level lvl) Adds a new print stream.static LoggerGetsinstance.booleanisLogLevelEnabled(Level lvl) static voidSingleton method which callsrun(String, Level)on the singleton instance.voidLogs a message on all streams with logging level smaller than the message level.
-
Method Details
-
getInstance
Getsinstance. -
addStream
Adds a new print stream.- Parameters:
ps- Print stream.lvl- Logging level.
-
log
Singleton method which callsrun(String, Level)on the singleton instance.- Parameters:
msg- Message.lvl- Importance level of a message.
-
isLogLevelEnabled
-
run
Logs a message on all streams with logging level smaller than the message level.- Parameters:
msg- Message.lvl- Importance level of message.
-