Class EinfacherLogFormatter

    • Constructor Detail

      • EinfacherLogFormatter

        public EinfacherLogFormatter()
    • Method Detail

      • getEscapedSubStrings

        protected java.util.List<EinfacherLogFormatter.StringPair> getEscapedSubStrings()
        Subklassen wie ClogTextFormatter haben eigene escapedSubStrings
      • getReverseEscapedSubStrings

        protected java.util.List<EinfacherLogFormatter.StringPair> getReverseEscapedSubStrings()
        Subklassen wie ClogTextFormatter haben eigene escapedSubStrings
      • createNopadNothrowableFormatter

        public static EinfacherLogFormatter createNopadNothrowableFormatter()
      • extractUrsache

        public static java.lang.String extractUrsache​(java.lang.Throwable ex)
      • getHeader

        public java.lang.String getHeader​(boolean withMultiMessageSeparator)
        Description copied from interface: ILogFormatter
        Not null, ein einfacher Header typischerweise Spalten Namen
        Evtl mit einem MultiMessageSeparator am Ende
        Specified by:
        getHeader in interface ILogFormatter
      • format

        public java.lang.String format​(LogMsg logMsg)
        Description copied from interface: ILogFormatter
        Not null, LogMsg wird als ein String ausgegeben ohne MultiMessageSeparator
        Specified by:
        format in interface ILogFormatter
      • encodeTheNewLine

        protected java.lang.String encodeTheNewLine​(java.lang.String msg)
      • format

        public java.lang.String format​(java.util.List<LogMsg> msgList)
        Description copied from interface: ILogFormatter
        Not null, eine Liste von LogMsg's werden als ein String ausgegeben. Ended mit MultiMessageSeparator
        Specified by:
        format in interface ILogFormatter
      • getFormatDate

        public final IFormatAsString<java.util.Date> getFormatDate()
        never null
      • setFormatDate

        public final void setFormatDate​(IFormatAsString<java.util.Date> formatDate)
      • getSEPARATOR_InMSG

        public java.lang.String getSEPARATOR_InMSG()
      • getLINE_SEPARATOR

        public java.lang.String getLINE_SEPARATOR()
      • getMultiMessageSeparator

        public java.lang.String getMultiMessageSeparator()
      • nrFormat

        public java.lang.String nrFormat​(long nr)
      • levelFormat

        public java.lang.String levelFormat​(LogLvl level)
      • applikationFormat

        public java.lang.String applikationFormat​(java.lang.String application)
      • runIdFormat

        public java.lang.String runIdFormat​(java.util.UUID runId)
      • pcNameFormat

        public java.lang.String pcNameFormat​(java.lang.String pcName)
      • kategorieFormat

        public java.lang.String kategorieFormat​(Logger logKategorie)
      • msgAndThrowableFormat

        public java.lang.String msgAndThrowableFormat​(java.lang.String msg,
                                                      java.lang.Throwable throwable)
      • throwableFormat

        public java.lang.String throwableFormat​(java.lang.Throwable throwable)
      • msgFormat

        public java.lang.String msgFormat​(java.lang.String msg)
        never a null Message, Tabs are replaced
      • decorate

        public java.lang.String decorate​(java.lang.String string)
      • pad

        public java.lang.String pad​(java.lang.String string)
      • paddedString

        public java.lang.String paddedString​(int padLength)
      • getPadRaster

        public final int getPadRaster()
      • setPadRaster

        public final void setPadRaster​(int padRaster)
      • setReduceThrowable

        public void setReduceThrowable​(boolean reduceThrowable)
        Throwable wird bei true als einzeiler sonst als iterativer Stacktrace dargestellt
      • getReduceThrowable

        public boolean getReduceThrowable()
        Throwable wird bei true als einzeiler sonst als iterativer Stacktrace dargestellt