- 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 voidlog(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
-
-
-
-
Method Detail
-
log
public void log(org.refcodes.tabular.Record<?> aRecord) throws IllegalRecordRuntimeException, UnexpectedLogRuntimeExceptionLogs aRecord. The targeted data sink for theRecordinstances (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:
login interfaceLogger<Object>- Parameters:
aRecord- TheRecordto be logged.- Throws:
IllegalRecordRuntimeException- Thrown in case the record cannot be logged as a specific implementation might expect some dedicatedColumninstances 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.
-
-