Package org.refcodes.logger
Class SystemLogger
- java.lang.Object
-
- org.refcodes.logger.SystemLogger
-
-
Constructor Summary
Constructors Constructor Description SystemLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
log(org.refcodes.tabular.Record<?> aRecord)
Logs aRecord
.-
Methods inherited from interface org.refcodes.logger.LogDecorator
printHead, printSeparator, printTail
-
-
-
-
Method Detail
-
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.
-
-