Package adaa.analytics.rules.utils
Class Logger
java.lang.Object
adaa.analytics.rules.utils.Logger
Auxiliary singleton class for logging.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStream
(PrintStream ps, Level lvl) Adds a new print stream.static Logger
Getsinstance
.boolean
isLogLevelEnabled
(Level lvl) static void
Singleton method which callsrun(String, Level)
on the singleton instance.void
Logs 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.
-