Package org.refcodes.logger
Interface LogDecorator
-
- All Known Subinterfaces:
Logger<T>
,QueryLogger<T>
,RuntimeLogger
,TrimLogger<T>
- All Known Implementing Classes:
CompositeLoggerImpl
,CompositeQueryLoggerImpl
,CompositeTrimLoggerImpl
,PartedLoggerImpl
,PartedQueryLoggerImpl
,PartedTrimLoggerImpl
,RuntimeLoggerImpl
,RuntimeLoggerSingleton
,SystemLogger
public interface LogDecorator
TheLogDecorator
provides means to beautify or enrich logs for example when printing user friendly logs to the console. Calling the methods of this decorator might have no effect, depending on the logger implementing these methods as the decorating information ads no information value more than just beautifying log output.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
printHead()
Prints the logger's head in case it hasn't been printed before orprintTail()
has been called.default void
printSeparator()
Prints a separator line in case the underlyingLogger
supports the such.default void
printTail()
Prints the logger's tail in case it hasn't been printed before orprintHead()
has been called.
-
-
-
Method Detail
-
printSeparator
default void printSeparator()
Prints a separator line in case the underlyingLogger
supports the such. A separator line may be printed just as of beautifying purposes and does not belong to the actual log's data. Therefore this method may just do nothing, depending on the implementing class.
-
printHead
default void printHead()
Prints the logger's head in case it hasn't been printed before orprintTail()
has been called. Printing the head might result in printing out the additional logger's information such as the column names.
-
printTail
default void printTail()
Prints the logger's tail in case it hasn't been printed before orprintHead()
has been called. Printing the tail might result in printing out the additional logger's information or visually finishing the current log sequence.
-
-