Package org.refcodes.logger.alt.console
Interface ConsoleLogger
-
- All Superinterfaces:
org.refcodes.logger.ColumnLayoutAccessor
,org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<ConsoleLogger>
,org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator
,org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutProperty
,org.refcodes.mixin.ErrorPrintStreamAccessor
,org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<FormattedLogger<java.lang.Object>>
,org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator
,org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty
,FormattedLogger<java.lang.Object>
,org.refcodes.logger.Logger<java.lang.Object>
,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<java.lang.Object>>
,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
- All Known Implementing Classes:
ConsoleLoggerImpl
,ConsoleLoggerSingleton
public interface ConsoleLogger extends FormattedLogger<java.lang.Object>, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutProperty, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<ConsoleLogger>
The Interface ConsoleLogger.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.logger.ColumnLayoutAccessor
org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<B extends org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<B>>, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator, org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ErrorPrintStreamAccessor
org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<B extends org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<?>>, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator, org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.RowWidthAccessor
org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<B extends org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<?>>, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.StandardPrintStreamAccessor
org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<B extends org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<?>>, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty
-
Nested classes/interfaces inherited from interface org.refcodes.textual.TableStyleAccessor
org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<B extends org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<?>>, org.refcodes.textual.TableStyleAccessor.TableStyleMutator, org.refcodes.textual.TableStyleAccessor.TableStyleProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
setLoggerLayout(java.lang.String aLoggerLayout)
As the underlying configuration framework used by theRuntimeLoggerSingleton
cannot convert a String to an enum, we got to provide such a method ourselves.default ConsoleLogger
withColumnLayout(org.refcodes.logger.ColumnLayout aColumnLayout)
default FormattedLogger<java.lang.Object>
withErrorPrintStream(java.io.PrintStream aErrorPrintStream)
default FormattedLogger<java.lang.Object>
withEscapeCodes(boolean isEscCodesEnabled)
With escape codes.default FormattedLogger<java.lang.Object>
withLeftBorder(boolean hasLeftBorder)
With left border.default FormattedLogger<java.lang.Object>
withRightBorder(boolean hasRightBorder)
With right border.default ConsoleLogger
withRowWidth(int aRowWidth)
default FormattedLogger<java.lang.Object>
withStandardPrintStream(java.io.PrintStream aStandardPrintStream)
default ConsoleLogger
withTableStyle(org.refcodes.textual.TableStyle aTableStyle)
-
Methods inherited from interface org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator
setColumnLayout
-
Methods inherited from interface org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator
setErrorPrintStream
-
Methods inherited from interface org.refcodes.logger.alt.console.FormattedLogger
hasEscapeCodes, hasLeftBorder, hasRightBorder, setEscapeCodes, setLeftBorder, setLoggerStyle, setRightBorder
-
Methods inherited from interface org.refcodes.mixin.StandardPrintStreamAccessor
getStandardPrintStream
-
-
-
-
Method Detail
-
withColumnLayout
default ConsoleLogger withColumnLayout(org.refcodes.logger.ColumnLayout aColumnLayout)
- Specified by:
withColumnLayout
in interfaceorg.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<ConsoleLogger>
-
withTableStyle
default ConsoleLogger withTableStyle(org.refcodes.textual.TableStyle aTableStyle)
- Specified by:
withTableStyle
in interfaceFormattedLogger<java.lang.Object>
- Specified by:
withTableStyle
in interfaceorg.refcodes.textual.TableStyleAccessor.TableStyleBuilder<FormattedLogger<?>>
-
withRowWidth
default ConsoleLogger withRowWidth(int aRowWidth)
- Specified by:
withRowWidth
in interfaceFormattedLogger<java.lang.Object>
- Specified by:
withRowWidth
in interfaceorg.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<FormattedLogger<?>>
-
withEscapeCodes
default FormattedLogger<java.lang.Object> withEscapeCodes(boolean isEscCodesEnabled)
With escape codes.- Specified by:
withEscapeCodes
in interfaceFormattedLogger<java.lang.Object>
- Parameters:
isEscCodesEnabled
- the is esc codes enabled- Returns:
- the formatted logger
-
withLeftBorder
default FormattedLogger<java.lang.Object> withLeftBorder(boolean hasLeftBorder)
With left border.- Specified by:
withLeftBorder
in interfaceFormattedLogger<java.lang.Object>
- Parameters:
hasLeftBorder
- the has left border- Returns:
- the formatted logger
-
withRightBorder
default FormattedLogger<java.lang.Object> withRightBorder(boolean hasRightBorder)
With right border.- Specified by:
withRightBorder
in interfaceFormattedLogger<java.lang.Object>
- Parameters:
hasRightBorder
- the has right border- Returns:
- the formatted logger
-
withErrorPrintStream
default FormattedLogger<java.lang.Object> withErrorPrintStream(java.io.PrintStream aErrorPrintStream)
- Specified by:
withErrorPrintStream
in interfaceorg.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<FormattedLogger<java.lang.Object>>
- Specified by:
withErrorPrintStream
in interfaceFormattedLogger<java.lang.Object>
-
withStandardPrintStream
default FormattedLogger<java.lang.Object> withStandardPrintStream(java.io.PrintStream aStandardPrintStream)
- Specified by:
withStandardPrintStream
in interfaceFormattedLogger<java.lang.Object>
- Specified by:
withStandardPrintStream
in interfaceorg.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<FormattedLogger<java.lang.Object>>
-
setLoggerLayout
default void setLoggerLayout(java.lang.String aLoggerLayout)
As the underlying configuration framework used by theRuntimeLoggerSingleton
cannot convert a String to an enum, we got to provide such a method ourselves. When configuring programmatically useColumnLayoutAccessor.ColumnLayoutMutator.setColumnLayout(ColumnLayout)
, when using the "runtimelogger-config.xml
" use the property "loggerLayout" for this method to be invoked. Valid arguments are as of theColumnLayout
enumeration:- SUPERUSER
- FALLBACK
- DEVELOPER
- DEVOPS
- END_USER
- Parameters:
aLoggerLayout
- the new logger layout
-
-