public class ConsoleLoggerImpl extends FormattedLoggerImpl<Object> implements ConsoleLogger
FormattedLoggerImpl
for handling
RuntimeLogger
's logs with ANSI Escape-Codes.FormattedLoggerImpl.OutputPrintStream
org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<B extends org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<?>>, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty
org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<B extends org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<?>>, org.refcodes.textual.TableStyleAccessor.TableStyleMutator, org.refcodes.textual.TableStyleAccessor.TableStyleProperty
org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<B extends org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<?>>, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty
org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<B extends org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<?>>, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty
org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<B extends org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<B>>, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutProperty
Modifier and Type | Field and Description |
---|---|
protected org.refcodes.textual.TableBuilder |
_exceptionBuilder |
protected org.refcodes.textual.TableBuilder |
_verboseBuilder |
protected org.refcodes.tabular.FormattedHeader<Object> |
_verboseHeader |
_errStream, _hasLeftBorder, _hasRightBorder, _header, _rowWidth, _stdStream, _tableBuilder, _tableStyle
Constructor and Description |
---|
ConsoleLoggerImpl() |
ConsoleLoggerImpl(org.refcodes.logger.ColumnLayout aLoggerLayout) |
Modifier and Type | Method and Description |
---|---|
org.refcodes.logger.ColumnLayout |
getColumnLayout() |
protected void |
init() |
void |
log(org.refcodes.tabular.Record<? extends Object> aRecord) |
protected void |
printException(Exception theException) |
void |
setColumnLayout(org.refcodes.logger.ColumnLayout aColumnLayout)
Setter only actually sets in case there is none system or environment
property set overriding any values to be set!
|
protected static org.refcodes.logger.ColumnLayout |
toLoggerLayaout() |
protected static org.refcodes.logger.ColumnLayout |
toLoggerLayout(org.refcodes.logger.ColumnLayout aLoggerLayout)
Determines the
ColumnLayout by evaluating the
SystemProperty.LOGGER_LAYOUT and the
EnvironmentProperty.LOGGER_LAYOUT (in this order). |
protected static org.refcodes.textual.TableStyle |
toLoggerStyle()
Determines the
TableStyle by evaluating the
SystemProperty.LOGGER_STYLE and the
EnvironmentProperty.LOGGER_STYLE (in this order). |
destroy, getErrorPrintStream, getRowWidth, getStandardPrintStream, getTableStyle, hasEscapeCodes, hasLeftBorder, hasRightBorder, log, setErrorPrintStream, setEscapeCodes, setLeftBorder, setLoggerStyle, setRightBorder, setRowWidth, setStandardPrintStream, setTableStyle, toPreConfiguredTableBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setLoggerLayout, withColumnLayout, withErrorPrintStream, withEscapeCodes, withLeftBorder, withRightBorder, withRowWidth, withStandardPrintStream, withTableStyle
hasEscapeCodes, hasLeftBorder, hasRightBorder, setEscapeCodes, setLeftBorder, setLoggerStyle, setRightBorder
setTableStyle
getStandardPrintStream
protected org.refcodes.textual.TableBuilder _exceptionBuilder
protected org.refcodes.textual.TableBuilder _verboseBuilder
protected org.refcodes.tabular.FormattedHeader<Object> _verboseHeader
public ConsoleLoggerImpl()
public ConsoleLoggerImpl(org.refcodes.logger.ColumnLayout aLoggerLayout)
public org.refcodes.logger.ColumnLayout getColumnLayout()
getColumnLayout
in interface org.refcodes.logger.ColumnLayoutAccessor
public void setColumnLayout(org.refcodes.logger.ColumnLayout aColumnLayout)
setColumnLayout
in interface org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator
public void log(org.refcodes.tabular.Record<? extends Object> aRecord) throws org.refcodes.logger.IllegalRecordRuntimeException, org.refcodes.logger.UnexpectedLogRuntimeException
log
in interface org.refcodes.logger.Logger<Object>
log
in class FormattedLoggerImpl<Object>
org.refcodes.logger.IllegalRecordRuntimeException
org.refcodes.logger.UnexpectedLogRuntimeException
protected void printException(Exception theException)
protected static org.refcodes.logger.ColumnLayout toLoggerLayout(org.refcodes.logger.ColumnLayout aLoggerLayout)
ColumnLayout
by evaluating the
SystemProperty.LOGGER_LAYOUT
and the
EnvironmentProperty.LOGGER_LAYOUT
(in this order). If none
(valid) layout was determinable, then the ColumnLayout.SUPERUSER
is returned.ColumnLayout
to be used.protected static org.refcodes.logger.ColumnLayout toLoggerLayaout()
protected static org.refcodes.textual.TableStyle toLoggerStyle()
TableStyle
by evaluating the
SystemProperty.LOGGER_STYLE
and the
EnvironmentProperty.LOGGER_STYLE
(in this order). If none (valid)
style was determinable, then a proposed style is returned.TableStyle
to be used.protected void init()
init
in class FormattedLoggerImpl<Object>
Copyright © 2017. All rights reserved.