Class ServletOutputLogTarget

    • Field Detail

      • m_context

        private javax.servlet.ServletContext m_context
    • Constructor Detail

      • ServletOutputLogTarget

        public ServletOutputLogTarget​(javax.servlet.ServletContext context,
                                      Formatter formatter)
        Constructor.
        Parameters:
        context - ServletContext to use for logging.
      • ServletOutputLogTarget

        public ServletOutputLogTarget​(javax.servlet.ServletContext context)
        Constructor.
        Parameters:
        context - ServletContext to use for logging.
    • Method Detail

      • write

        protected void write​(java.lang.String message)
        Logs message to servlet context log file
        Overrides:
        write in class AbstractOutputTarget
        Parameters:
        message - message to log to servlet context log file.
      • close

        public void close()
        Shutdown target. Attempting to write to target after close() will cause errors to be logged.
        Specified by:
        close in interface Closeable
        Overrides:
        close in class AbstractOutputTarget