Class ThrowableProxyConverter

    • Field Detail

      • lengthOption

        int lengthOption
      • ignoredStackTraceLines

        java.util.List<java.lang.String> ignoredStackTraceLines
      • errorCount

        int errorCount
    • Constructor Detail

      • ThrowableProxyConverter

        public ThrowableProxyConverter()
    • Method Detail

      • start

        public void start()
        Description copied from class: DynamicConverter
        Components that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient.
        Specified by:
        start in interface LifeCycle
        Overrides:
        start in class DynamicConverter<ILoggingEvent>
      • addIgnoreStackTraceLine

        private void addIgnoreStackTraceLine​(java.lang.String ignoredStackTraceLine)
      • convert

        public java.lang.String convert​(ILoggingEvent event)
        Description copied from class: Converter
        The convert method is responsible for extracting data from the event and storing it for later use by the write method.
        Specified by:
        convert in class Converter<ILoggingEvent>
      • throwableProxyToString

        protected java.lang.String throwableProxyToString​(IThrowableProxy tp)
      • recursiveAppend

        private void recursiveAppend​(java.lang.StringBuilder sb,
                                     java.lang.String prefix,
                                     int indent,
                                     IThrowableProxy tp)
      • subjoinFirstLine

        private void subjoinFirstLine​(java.lang.StringBuilder buf,
                                      java.lang.String prefix,
                                      int indent,
                                      IThrowableProxy tp)
      • subjoinExceptionMessage

        private void subjoinExceptionMessage​(java.lang.StringBuilder buf,
                                             IThrowableProxy tp)
      • subjoinSTEPArray

        protected void subjoinSTEPArray​(java.lang.StringBuilder buf,
                                        int indent,
                                        IThrowableProxy tp)
      • printStackLine

        private void printStackLine​(java.lang.StringBuilder buf,
                                    int ignoredCount,
                                    StackTraceElementProxy element)
      • printIgnoredCount

        private void printIgnoredCount​(java.lang.StringBuilder buf,
                                       int ignoredCount)
      • isIgnoredStackTraceLine

        private boolean isIgnoredStackTraceLine​(java.lang.String line)