/** * Issue a log msg and throwable with a level of DEBUG. * Invokes log.log(Level.DEBUG, message, t); */ public void debug(Object message, Throwable t) { loggerDelegate.debug(message, t); }
/** * Issue a log msg and throwable with a level of ERROR. * * @param message the message * @param t the throwable */ public void error(Object message, Throwable t) { loggerDelegate.error(message, t); }
/** * Issue a log msg and throwable with a level of FATAL. * * @param message the message * @param t the throwable */ public void fatal(Object message, Throwable t) { loggerDelegate.fatal(message, t); }
/** * Issue a log msg with a level of TRACE. * * @param message the message */ public void trace(Object message) { loggerDelegate.trace(message); }
/** * Issue a log msg with a level of WARN. * Invokes log.log(Level.WARN, message); */ public void warn(Object message) { loggerDelegate.warn(message); }
/** * Issue a log msg with a level of INFO. * * @param message the message */ public void info(Object message) { loggerDelegate.info(message); }
/** * Check to see if the TRACE level is enabled for this logger. * * @return true if a {@link #trace(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isTraceEnabled() { return loggerDelegate.isTraceEnabled(); }
/** * Check to see if the INFO level is enabled for this logger. * * @deprecated INFO is for low volume information, you don't need this * @return true if a {@link #info(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isInfoEnabled() { return loggerDelegate.isInfoEnabled(); }
/** * Check to see if the DEBUG level is enabled for this logger. * * @deprecated DEBUG is for low volume logging, you don't need this * @return true if a {@link #trace(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isDebugEnabled() { return loggerDelegate.isDebugEnabled(); }
protected static LoggerPlugin getDelegatePlugin(String name) { LoggerPlugin plugin = null; try { plugin = (LoggerPlugin) pluginClass.newInstance(); } catch (Throwable e) { plugin = new NullLoggerPlugin(); } try { plugin.init(name); } catch(Throwable e) { System.err.println("Failed to initalize plugin: "+plugin); plugin = new NullLoggerPlugin(); } return plugin; }
/** * Issue a log msg and throwable with a level of TRACE. * * @param message the message * @param t the throwable */ public void trace(Object message, Throwable t) { loggerDelegate.trace(message, t); }
/** * Issue a log msg and throwable with a level of WARN. * * @param message the message * @param t the throwable */ public void warn(Object message, Throwable t) { loggerDelegate.warn(message, t); }
/** * Issue a log msg and throwable with a level of INFO. * * @param message the message * @param t the throwable */ public void info(Object message, Throwable t) { loggerDelegate.info(message, t); }
/** * Check to see if the TRACE level is enabled for this logger. * * @return true if a {@link #trace(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isTraceEnabled() { return loggerDelegate.isTraceEnabled(); }
/** * Check to see if the INFO level is enabled for this logger. * * @deprecated INFO is for low volume information, you don't need this * @return true if a {@link #info(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isInfoEnabled() { return loggerDelegate.isInfoEnabled(); }
/** * Check to see if the DEBUG level is enabled for this logger. * * @deprecated DEBUG is for low volume logging, you don't need this * @return true if a {@link #trace(Object)} method invocation would pass * the msg to the configured appenders, false otherwise. */ public boolean isDebugEnabled() { return loggerDelegate.isDebugEnabled(); }
/** * Get the delegate plugin * * @param name the name of the logger * @return the plugin */ protected static LoggerPlugin getDelegatePlugin(String name) { LoggerPlugin plugin = null; try { plugin = (LoggerPlugin) pluginClass.newInstance(); } catch (Throwable e) { plugin = new NullLoggerPlugin(); } try { plugin.init(name); } catch (Throwable e) { String extraInfo = e.getMessage(); System.err.println("Failed to initalize plugin: " + plugin + (extraInfo != null ? ", cause: " + extraInfo : "")); plugin = new NullLoggerPlugin(); } return plugin; }
/** * Issue a log msg with a level of DEBUG. * * @param message the message */ public void debug(Object message) { loggerDelegate.debug(message); }
/** * Issue a log msg and throwable with a level of FATAL. * Invokes log.log(Level.FATAL, message, t); */ public void fatal(Object message, Throwable t) { loggerDelegate.fatal(message, t); }
/** * Issue a log msg with a level of TRACE. * Invokes log.log(XLevel.TRACE, message); */ public void trace(Object message) { loggerDelegate.trace(message); }