T
- The type of the Record
instances managed by the
Logger
.org.refcodes.mixin.ErrorPrintStreamAccessor
, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<FormattedLogger<T>>
, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator
, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty
, org.refcodes.logger.Logger<T>
, org.refcodes.mixin.RowWidthAccessor
, org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<FormattedLogger<?>>
, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator
, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty
, org.refcodes.mixin.StandardPrintStreamAccessor
, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<FormattedLogger<T>>
, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator
, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty
, org.refcodes.textual.TableStyleAccessor
, org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<FormattedLogger<?>>
, org.refcodes.textual.TableStyleAccessor.TableStyleMutator
, org.refcodes.textual.TableStyleAccessor.TableStyleProperty
ConsoleLogger
ConsoleLoggerImpl
, ConsoleLoggerSingleton
, FormattedLoggerImpl
public interface FormattedLogger<T> extends org.refcodes.logger.Logger<T>, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty, org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<FormattedLogger<?>>, org.refcodes.textual.TableStyleAccessor.TableStyleProperty, org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<FormattedLogger<?>>, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<FormattedLogger<T>>, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<FormattedLogger<T>>
FormattedLogger
interface defines the methods to do pretty
logging to the console's output- or error-streams.org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<B extends org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<?>>, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty
org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<B extends org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<?>>, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty
org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<B extends org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<?>>, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty
org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<B extends org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<?>>, org.refcodes.textual.TableStyleAccessor.TableStyleMutator, org.refcodes.textual.TableStyleAccessor.TableStyleProperty
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasEscapeCodes() |
Checks for escape codes.
|
boolean |
hasLeftBorder() |
Checks for left border.
|
boolean |
hasRightBorder() |
Checks for right border.
|
void |
setEscapeCodes(boolean isEscCodesEnabled) |
Sets the escape codes.
|
void |
setLeftBorder(boolean hasLeftBorder) |
Sets the left border.
|
void |
setLoggerStyle(String aTableStyle) |
As the underlying configuration framework used by the
RuntimeLoggerSingleton cannot convert a String to an enum, we got
to provide such a method ourselves. |
void |
setRightBorder(boolean hasRightBorder) |
Sets the right border.
|
default FormattedLogger<T> |
withErrorPrintStream(PrintStream aErrorPrintStream) |
|
default FormattedLogger<T> |
withEscapeCodes(boolean isEscCodesEnabled) |
With escape codes.
|
default FormattedLogger<T> |
withLeftBorder(boolean hasLeftBorder) |
With left border.
|
default FormattedLogger<T> |
withRightBorder(boolean hasRightBorder) |
With right border.
|
default FormattedLogger<?> |
withRowWidth(int aRowWidth) |
|
default FormattedLogger<T> |
withStandardPrintStream(PrintStream aStandardPrintStream) |
|
default FormattedLogger<?> |
withTableStyle(org.refcodes.textual.TableStyle aTableStyle) |
setErrorPrintStream
getStandardPrintStream
void setLoggerStyle(String aTableStyle)
RuntimeLoggerSingleton
cannot convert a String to an enum, we got
to provide such a method ourselves. When configuring programmatically use
TableStyleAccessor.TableStyleMutator.setTableStyle(TableStyle)
, when using the
"runtimelogger-config.xml
" use the property "loggerStyle"
for this method to be invoked. Valid arguments are as of the
TableStyle
enumeration:
aTableStyle
- The style to use for the logger.void setEscapeCodes(boolean isEscCodesEnabled)
isEscCodesEnabled
- the new escape codesdefault FormattedLogger<T> withEscapeCodes(boolean isEscCodesEnabled)
isEscCodesEnabled
- the is esc codes enabledboolean hasEscapeCodes()
boolean hasLeftBorder()
void setLeftBorder(boolean hasLeftBorder)
hasLeftBorder
- the new left borderdefault FormattedLogger<T> withLeftBorder(boolean hasLeftBorder)
hasLeftBorder
- the has left borderboolean hasRightBorder()
void setRightBorder(boolean hasRightBorder)
hasRightBorder
- the new right borderdefault FormattedLogger<T> withRightBorder(boolean hasRightBorder)
hasRightBorder
- the has right borderdefault FormattedLogger<T> withErrorPrintStream(PrintStream aErrorPrintStream)
withErrorPrintStream
in interface org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<T>
default FormattedLogger<T> withStandardPrintStream(PrintStream aStandardPrintStream)
withStandardPrintStream
in interface org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<T>
default FormattedLogger<?> withTableStyle(org.refcodes.textual.TableStyle aTableStyle)
withTableStyle
in interface org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<T>
default FormattedLogger<?> withRowWidth(int aRowWidth)
withRowWidth
in interface org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<T>
Copyright © 2018. All rights reserved.