Package omero.log

Class SimpleLogger

  • All Implemented Interfaces:
    Logger

    public class SimpleLogger
    extends java.lang.Object
    implements Logger
    A simple Logger implementation which just prints the messages to the console
    Since:
    5.1
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.Object originator, java.lang.String logMsg)
      Logs a debug message.
      void debug​(java.lang.Object originator, LogMessage msg)
      Logs a debug message.
      void error​(java.lang.Object originator, java.lang.String logMsg)
      Logs an error message.
      void error​(java.lang.Object originator, LogMessage msg)
      Logs an error message.
      void fatal​(java.lang.Object originator, java.lang.String logMsg)
      Logs a fatal message.
      void fatal​(java.lang.Object originator, LogMessage msg)
      Logs a fatal message.
      java.lang.String getLogFile()
      Returns the log file.
      void info​(java.lang.Object originator, java.lang.String logMsg)
      Logs an info message.
      void info​(java.lang.Object originator, LogMessage msg)
      Logs an info message.
      void warn​(java.lang.Object originator, java.lang.String logMsg)
      Logs a warn message.
      void warn​(java.lang.Object originator, LogMessage msg)
      Logs a warn message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleLogger

        public SimpleLogger()
    • Method Detail

      • debug

        public void debug​(java.lang.Object originator,
                          java.lang.String logMsg)
        Description copied from interface: Logger
        Logs a debug message.
        Specified by:
        debug in interface Logger
        Parameters:
        originator - The originator of the message.
        logMsg - The log message.
      • debug

        public void debug​(java.lang.Object originator,
                          LogMessage msg)
        Description copied from interface: Logger
        Logs a debug message.
        Specified by:
        debug in interface Logger
        Parameters:
        originator - The originator of the message.
        msg - The log message.
      • info

        public void info​(java.lang.Object originator,
                         java.lang.String logMsg)
        Description copied from interface: Logger
        Logs an info message.
        Specified by:
        info in interface Logger
        Parameters:
        originator - The originator of the message.
        logMsg - The log message.
      • info

        public void info​(java.lang.Object originator,
                         LogMessage msg)
        Description copied from interface: Logger
        Logs an info message.
        Specified by:
        info in interface Logger
        Parameters:
        originator - The originator of the message.
        msg - The log message.
      • warn

        public void warn​(java.lang.Object originator,
                         java.lang.String logMsg)
        Description copied from interface: Logger
        Logs a warn message.
        Specified by:
        warn in interface Logger
        Parameters:
        originator - The originator of the message.
        logMsg - The log message.
      • warn

        public void warn​(java.lang.Object originator,
                         LogMessage msg)
        Description copied from interface: Logger
        Logs a warn message.
        Specified by:
        warn in interface Logger
        Parameters:
        originator - The originator of the message.
        msg - The log message.
      • error

        public void error​(java.lang.Object originator,
                          java.lang.String logMsg)
        Description copied from interface: Logger
        Logs an error message.
        Specified by:
        error in interface Logger
        Parameters:
        originator - The originator of the message.
        logMsg - The log message.
      • error

        public void error​(java.lang.Object originator,
                          LogMessage msg)
        Description copied from interface: Logger
        Logs an error message.
        Specified by:
        error in interface Logger
        Parameters:
        originator - The originator of the message.
        msg - The log message.
      • fatal

        public void fatal​(java.lang.Object originator,
                          java.lang.String logMsg)
        Description copied from interface: Logger
        Logs a fatal message.
        Specified by:
        fatal in interface Logger
        Parameters:
        originator - The originator of the message.
        logMsg - The log message.
      • fatal

        public void fatal​(java.lang.Object originator,
                          LogMessage msg)
        Description copied from interface: Logger
        Logs a fatal message.
        Specified by:
        fatal in interface Logger
        Parameters:
        originator - The originator of the message.
        msg - The log message.
      • getLogFile

        public java.lang.String getLogFile()
        Description copied from interface: Logger
        Returns the log file.
        Specified by:
        getLogFile in interface Logger
        Returns:
        See above.