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<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<java.lang.Object>, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty, org.refcodes.mixin.StandardPrintStreamAccessor, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<java.lang.Object>, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator, org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamProperty, org.refcodes.textual.TableStyleAccessor, org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<java.lang.Object>, 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 the RuntimeLoggerSingleton 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

        getColumnLayout
      • Methods inherited from interface org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutMutator

        setColumnLayout
      • Methods inherited from interface org.refcodes.mixin.ErrorPrintStreamAccessor

        getErrorPrintStream
      • Methods inherited from interface org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamMutator

        setErrorPrintStream
      • Methods inherited from interface org.refcodes.logger.Logger

        log, printSeparator
      • Methods inherited from interface org.refcodes.mixin.RowWidthAccessor

        getRowWidth
      • Methods inherited from interface org.refcodes.mixin.RowWidthAccessor.RowWidthMutator

        setRowWidth
      • Methods inherited from interface org.refcodes.mixin.StandardPrintStreamAccessor

        getStandardPrintStream
      • Methods inherited from interface org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamMutator

        setStandardPrintStream
      • Methods inherited from interface org.refcodes.textual.TableStyleAccessor

        getTableStyle
      • Methods inherited from interface org.refcodes.textual.TableStyleAccessor.TableStyleMutator

        setTableStyle
    • Method Detail

      • withColumnLayout

        default ConsoleLogger withColumnLayout​(org.refcodes.logger.ColumnLayout aColumnLayout)
        Specified by:
        withColumnLayout in interface org.refcodes.logger.ColumnLayoutAccessor.ColumnLayoutBuilder<ConsoleLogger>
      • withTableStyle

        default ConsoleLogger withTableStyle​(org.refcodes.textual.TableStyle aTableStyle)
        Specified by:
        withTableStyle in interface FormattedLogger<java.lang.Object>
        Specified by:
        withTableStyle in interface org.refcodes.textual.TableStyleAccessor.TableStyleBuilder<java.lang.Object>
      • withRowWidth

        default ConsoleLogger withRowWidth​(int aRowWidth)
        Specified by:
        withRowWidth in interface FormattedLogger<java.lang.Object>
        Specified by:
        withRowWidth in interface org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<java.lang.Object>
      • withEscapeCodes

        default FormattedLogger<java.lang.Object> withEscapeCodes​(boolean isEscCodesEnabled)
        With escape codes.
        Specified by:
        withEscapeCodes in interface FormattedLogger<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 interface FormattedLogger<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 interface FormattedLogger<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 interface org.refcodes.mixin.ErrorPrintStreamAccessor.ErrorPrintStreamBuilder<java.lang.Object>
        Specified by:
        withErrorPrintStream in interface FormattedLogger<java.lang.Object>
      • withStandardPrintStream

        default FormattedLogger<java.lang.Object> withStandardPrintStream​(java.io.PrintStream aStandardPrintStream)
        Specified by:
        withStandardPrintStream in interface FormattedLogger<java.lang.Object>
        Specified by:
        withStandardPrintStream in interface org.refcodes.mixin.StandardPrintStreamAccessor.StandardPrintStreamBuilder<java.lang.Object>
      • setLoggerLayout

        default void setLoggerLayout​(java.lang.String aLoggerLayout)
        As the underlying configuration framework used by the RuntimeLoggerSingleton cannot convert a String to an enum, we got to provide such a method ourselves. When configuring programmatically use ColumnLayoutAccessor.ColumnLayoutMutator.setColumnLayout(ColumnLayout), when using the "runtimelogger-config.xml" use the property "loggerLayout" for this method to be invoked. Valid arguments are as of the ColumnLayout enumeration:
        • GRANDPA
        • SUPERUSER
        • FALLBACK
        • DEVELOPER
        • DEVOPS
        • END_USER
        • ANALYST
        Parameters:
        aLoggerLayout - the new logger layout