/** * Creates a log context. * * @param context the label for the context. * * @return A log context. */ public static LogContext createContext(final String context) { return getInstance().internalCreateContext(context); }
/** * Logs a message to the main log stream. All attached log targets will also * receive this message. If the given log-level is higher than the given debug-level * in the main config file, no logging will be done. * * @param level log level of the message. * @param message text to be logged. */ public static void log(final int level, final Object message) { getInstance().doLog(level, message); }
/** * Returns true, if the log level allows informational * messages to be printed. * * @return true, if messages with an log level of INFO are allowed. */ public static boolean isInfoEnabled() { return getInstance().getDebuglevel() >= LogTarget.INFO; }
/** * Returns true, if the log level allows warning messages to be * printed. * * @return true, if messages with an log level of WARN are allowed. */ public static boolean isWarningEnabled() { return getInstance().getDebuglevel() >= LogTarget.WARN; }
/** * Returns true, if the log level allows debug messages to be * printed. * * @return true, if messages with an log level of DEBUG are allowed. */ public static boolean isDebugEnabled() { return getInstance().getDebuglevel() >= LogTarget.DEBUG; }
/** * Returns true, if the log level allows error messages to be * printed. * * @return true, if messages with an log level of ERROR are allowed. */ public static boolean isErrorEnabled() { return getInstance().getDebuglevel() >= LogTarget.ERROR; }
/** * Logs a message to the main log stream. All attached log targets will also * receive this message. If the given log-level is higher than the given debug-level * in the main config file, no logging will be done. * * @param level log level of the message. * @param message text to be logged. */ public static void log(final int level, final Object message) { getInstance().doLog(level, message); }
/** * Returns true, if the log level allows debug messages to be * printed. * * @return true, if messages with an log level of DEBUG are allowed. */ public static boolean isDebugEnabled() { return getInstance().getDebuglevel() >= LogTarget.DEBUG; }
/** * Returns true, if the log level allows informational * messages to be printed. * * @return true, if messages with an log level of INFO are allowed. */ public static boolean isInfoEnabled() { return getInstance().getDebuglevel() >= LogTarget.INFO; }
/** * Creates a log context. * * @param context the label for the context. * * @return A log context. */ public static LogContext createContext(final String context) { return getInstance().internalCreateContext(context); }
/** * Returns true, if the log level allows warning messages to be * printed. * * @return true, if messages with an log level of WARN are allowed. */ public static boolean isWarningEnabled() { return getInstance().getDebuglevel() >= LogTarget.WARN; }
/** * Returns true, if the log level allows warning messages to be * printed. * * @return true, if messages with an log level of WARN are allowed. */ public static boolean isWarningEnabled() { return getInstance().getDebuglevel() >= LogTarget.WARN; }
/** * Returns true, if the log level allows informational * messages to be printed. * * @return true, if messages with an log level of INFO are allowed. */ public static boolean isInfoEnabled() { return getInstance().getDebuglevel() >= LogTarget.INFO; }
/** * Creates a log context. * * @param context the label for the context. * * @return A log context. */ public static LogContext createContext(final String context) { return getInstance().internalCreateContext(context); }
/** * Logs a message to the main log stream. All attached log targets will also * receive this message. If the given log-level is higher than the given debug-level * in the main config file, no logging will be done. * * @param level log level of the message. * @param message text to be logged. */ public static void log(final int level, final Object message) { getInstance().doLog(level, message); }
/** * Returns true, if the log level allows error messages to be * printed. * * @return true, if messages with an log level of ERROR are allowed. */ public static boolean isErrorEnabled() { return getInstance().getDebuglevel() >= LogTarget.ERROR; }
/** * Returns true, if the log level allows debug messages to be * printed. * * @return true, if messages with an log level of DEBUG are allowed. */ public static boolean isDebugEnabled() { return getInstance().getDebuglevel() >= LogTarget.DEBUG; }
/** * Returns true, if the log level allows error messages to be * printed. * * @return true, if messages with an log level of ERROR are allowed. */ public static boolean isErrorEnabled() { return getInstance().getDebuglevel() >= LogTarget.ERROR; }
/** * Logs a message to the main log stream. All attached logTargets will also * receive this message. If the given log-level is higher than the given debug-level * in the main config file, no logging will be done. * <p> * The exception's stacktrace will be appended to the log-stream</p> * * @param level log level of the message. * @param message text to be logged. * @param e the exception, which should be logged. */ public static void log(final int level, final Object message, final Exception e) { getInstance().doLog(level, message, e); }
/** * Logs a message to the main log stream. All attached logTargets will also * receive this message. If the given log-level is higher than the given debug-level * in the main config file, no logging will be done. * <p/> * The exception's stacktrace will be appended to the log-stream * * @param level log level of the message. * @param message text to be logged. * @param e the exception, which should be logged. */ public static void log(final int level, final Object message, final Exception e) { getInstance().doLog(level, message, e); }