Class EoulsanLogger


  • public class EoulsanLogger
    extends Object
    This class allow to change the logger name for all Eoulsan classes. The setLoggerName() method must be called before any other Eoulsan method.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • EoulsanLogger

        public EoulsanLogger()
    • Method Detail

      • getLogger

        public static Logger getLogger()
        Get the logger object.
        Returns:
        a logger object for Eoulsan
      • setLoggerName

        public static void setLoggerName​(String newLoggerName)
        Set the logger name.
        Parameters:
        newLoggerName - the new logger name
      • getLoggerName

        public static String getLoggerName()
        Get the logger name.
        Returns:
        the logger name
      • registerThreadGroupLogger

        public static void registerThreadGroupLogger​(ThreadGroup threadGroup,
                                                     Logger logger)
        Register a logger for a thread group.
        Parameters:
        threadGroup - thread group
        logger - logger to register
      • removeThreadGroupLogger

        public static void removeThreadGroupLogger​(ThreadGroup threadGroup)
        Remove a logger for a thread group.
        Parameters:
        threadGroup - thread group
      • initConsoleHandler

        public static void initConsoleHandler()
        Initialize the console logger handler for Hadoop mappers and reducers. This method set the Eoulsan logger format and define the logger level.
      • initConsoleHandler

        public static void initConsoleHandler​(Level level)
        Initialize the console logger handler for Hadoop mappers and reducers.
        Parameters:
        level - log level to use
      • logSevere

        public static void logSevere​(String msg)
        Log an SEVERE message using getLogger().severe().
        Parameters:
        msg - The string message
      • logWarning

        public static void logWarning​(String msg)
        Log an WARNING message using getLogger().warning().
        Parameters:
        msg - The string message
      • logInfo

        public static void logInfo​(String msg)
        Log an INFO message using getLogger().info().
        Parameters:
        msg - The string message
      • logConfig

        public static void logConfig​(String msg)
        Log a CONFIG message using getLogger().config().
        Parameters:
        msg - The string message
      • logFiner

        public static void logFiner​(String msg)
        Log a FINER message using getLogger().finer().
        Parameters:
        msg - The string message
      • logFinest

        public static void logFinest​(String message)
        Log a FINEST message using getLogger().finest().
        Parameters:
        message - The string message
      • getGenericLogger

        public static fr.ens.biologie.genomique.kenetre.log.GenericLogger getGenericLogger()