Package org.anchoranalysis.core.log
Class Logger
Object
Logger
A logging-mechanism for both messages and errors.
Messages are written to a MessageLogger
whereas errors are written to a ErrorReporter
(which may or may not report the errors back into the message-logger).
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionLogger
(MessageLogger messageLogger) Constructs with an error-reporter that writes into the message logger.Logger
(MessageLogger messageLogger, ErrorReporter errorReporter) Creates a newLogger
instance. -
Method Summary
Modifier and TypeMethodDescriptionWhere errors are reported to.Where messages are logged to.
-
Constructor Details
-
Logger
Constructs with an error-reporter that writes into the message logger.- Parameters:
messageLogger
- where messages are logged to.
-
Logger
Creates a newLogger
instance.- Parameters:
messageLogger
- Where messages are logged to.errorReporter
- Where errors are reported to.
-
-
Method Details
-
messageLogger
Where messages are logged to. -
errorReporter
Where errors are reported to.
-