Code example for LogManager

Methods: addLoggergetLogger

0
            LogHelper.s_logManager = LogManager.getLogManager();
            LogHelper.setGlobalParameters(); 
        } 
         
        String name = cl.getName();
        LogHelper logger = (LogHelper) LogHelper.s_logManager.getLogger(name);
         
        if (logger == null) {
            logger = new LogHelper(name);
            LogHelper.s_logManager.addLogger(logger);
            logger = (LogHelper) LogHelper.s_logManager.getLogger(name);
        } 
         
        return logger;
    } 
     
    private static void setGlobalParameters() { 
        Logger topLogger = Logger.getLogger("");
         
        Handler consoleHandler = null;
        for (Handler handler : topLogger.getHandlers())