Class BaseLogger

    • Field Detail

      • PARAM_EXCEPTIONS

        public static final java.lang.String PARAM_EXCEPTIONS
        See Also:
        Constant Field Values
      • VALUE_SHOW_TERMINATED

        public static final java.lang.String VALUE_SHOW_TERMINATED
        See Also:
        Constant Field Values
      • VALUE_SHOW_EXCEPTIONS

        public static final java.lang.String VALUE_SHOW_EXCEPTIONS
        See Also:
        Constant Field Values
      • logExceptionTrace

        private boolean logExceptionTrace
    • Constructor Detail

      • BaseLogger

        public BaseLogger()
    • Method Detail

      • init

        public void init​(Session session,
                         java.util.Map<java.lang.String,​java.lang.String> parameters)
                  throws OpenAS2Exception
        Description copied from interface: Component
        Component lifecycle hook. After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.
        Specified by:
        init in interface Component
        Overrides:
        init in class BaseComponent
        Parameters:
        session - the component uses this object to access other components
        parameters - configuration values for the component
        Throws:
        OpenAS2Exception - If an error occurs while initializing the component
        See Also:
        Session
      • isLogExceptionTrace

        public boolean isLogExceptionTrace()
      • setLogExceptionTrace

        public void setLogExceptionTrace​(boolean logExceptionTrace)
      • log

        public void log​(java.lang.Throwable t,
                        Level level,
                        boolean terminated)
        Specified by:
        log in interface Logger
      • log

        public void log​(Level level,
                        java.lang.String msgText,
                        Message message,
                        java.lang.Throwable t)
        level msgText message
        Specified by:
        log in interface Logger
        Parameters:
        level - The log level we are spewing out
        msgText - The message to log
        message - The context object that will provide additional information
      • getShowDefaults

        protected abstract java.lang.String getShowDefaults()
      • isShowing

        protected boolean isShowing​(java.lang.String value)
      • doLog

        protected abstract void doLog​(java.lang.Throwable throwable,
                                      boolean terminated)
      • doLog

        protected abstract void doLog​(Level level,
                                      java.lang.String msgText,
                                      Message message)