java.lang.Object
org.refcodes.logger.SystemLogger
- All Implemented Interfaces:
LogDecorator
,Logger<Object>
Very plain implementation of the logger interface, mainly used as fallback
Logger
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
log
(org.refcodes.tabular.Record<?> aRecord) Logs aRecord
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.logger.LogDecorator
printHead, printSeparator, printTail
-
Constructor Details
-
SystemLogger
public SystemLogger()
-
-
Method Details
-
log
public void log(org.refcodes.tabular.Record<?> aRecord) throws IllegalRecordRuntimeException, UnexpectedLogRuntimeException Logs aRecord
. The targeted data sink for theRecord
instances (where them are physically stored) depends on the implementation of theLogger
. It can be a console, a file, a stream or a database.- Specified by:
log
in interfaceLogger<Object>
- Parameters:
aRecord
- TheRecord
to be logged.- Throws:
IllegalRecordRuntimeException
- Thrown in case the record cannot be logged as a specific implementation might expect some dedicatedColumn
instances to be contained in the provided Record.UnexpectedLogRuntimeException
- Thrown in case some other problems regarding logging occurred, e.g. the data sink (physical system where to log to) experiences problems.
-