Package org.jmol.util

Class DefaultLogger

    • Constructor Detail

      • DefaultLogger

        public DefaultLogger()
    • Method Detail

      • log

        protected void log​(PrintStream out,
                           int level,
                           String txt,
                           Throwable e)
        Method to output a log.
        Parameters:
        out - Output stream.
        level - Log level.
        txt - Text to log.
        e - Exception.
      • debug

        public void debug​(String txt)
        Description copied from interface: LoggerInterface
        Writes a log at DEBUG level.
        Specified by:
        debug in interface LoggerInterface
        Parameters:
        txt - String to write.
      • info

        public void info​(String txt)
        Description copied from interface: LoggerInterface
        Writes a log at INFO level.
        Specified by:
        info in interface LoggerInterface
        Parameters:
        txt - String to write.
      • warn

        public void warn​(String txt)
        Description copied from interface: LoggerInterface
        Writes a log at WARN level.
        Specified by:
        warn in interface LoggerInterface
        Parameters:
        txt - String to write.
      • warnEx

        public void warnEx​(String txt,
                           Throwable e)
        Description copied from interface: LoggerInterface
        Writes a log at WARN level with detail on exception.
        Specified by:
        warnEx in interface LoggerInterface
        Parameters:
        txt - String to write.
        e - Exception.
      • error

        public void error​(String txt)
        Description copied from interface: LoggerInterface
        Writes a log at ERROR level.
        Specified by:
        error in interface LoggerInterface
        Parameters:
        txt - String to write.
      • errorEx

        public void errorEx​(String txt,
                            Throwable e)
        Description copied from interface: LoggerInterface
        Writes a log at ERROR level with detail on exception.
        Specified by:
        errorEx in interface LoggerInterface
        Parameters:
        txt - String to write.
        e - Exception.
      • fatal

        public void fatal​(String txt)
        Description copied from interface: LoggerInterface
        Writes a log at FATAL level.
        Specified by:
        fatal in interface LoggerInterface
        Parameters:
        txt - String to write.
      • fatalEx

        public void fatalEx​(String txt,
                            Throwable e)
        Description copied from interface: LoggerInterface
        Writes a log at ERROR level with detail on exception.
        Specified by:
        fatalEx in interface LoggerInterface
        Parameters:
        txt - String to write.
        e - Exception.