public final class Log extends Object
Additionally, this class provides methods that can be used to record logging statements. These methods are exact duplicates of the previous Log implementation of Openfire and are kept for backwards-compatibility (the are deprecated). These methods will delegate logging functionality to slf4j. Instead of these methods, slf4j logging functionality should be used directly.
Modifier and Type | Field and Description |
---|---|
static SystemProperty<Boolean> |
DEBUG_ENABLED |
static String |
LOG_DEBUG_ENABLED
Deprecated.
in favour of
DEBUG_ENABLED |
static String |
LOG_TRACE_ENABLED
Deprecated.
in favour of
TRACE_ENABLED |
static SystemProperty<Boolean> |
TRACE_ENABLED |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String s)
Deprecated.
replaced by
Logger.debug(String) .
Functionality of this method is delegated there. |
static void |
debug(String s,
Throwable throwable)
Deprecated.
replaced by
Logger.debug(String, Throwable) .
Functionality of this method is delegated there. |
static void |
debug(Throwable throwable)
Deprecated.
replaced by
Logger.debug(String, Throwable) .
Functionality of this method is delegated there. |
static void |
error(String s)
Deprecated.
replaced by
Logger.error(String) .
Functionality of this method is delegated there. |
static void |
error(String s,
Throwable throwable)
Deprecated.
replaced by
Logger.error(String, Throwable) .
Functionality of this method is delegated there. |
static void |
error(Throwable throwable)
Deprecated.
replaced by
Logger.error(String, Throwable) .
Functionality of this method is delegated there. |
static String |
getLogDirectory()
Returns the directory that log files exist in.
|
static void |
info(String s)
Deprecated.
replaced by
Logger.info(String) .
Functionality of this method is delegated there. |
static void |
info(String s,
Throwable throwable)
Deprecated.
replaced by
Logger.info(String, Throwable) .
Functionality of this method is delegated there. |
static void |
info(Throwable throwable)
Deprecated.
replaced by
Logger.info(String, Throwable) .
Functionality of this method is delegated there. |
static boolean |
isDebugEnabled()
Deprecated.
replaced by
Logger.isDebugEnabled() .
Functionality of this method is delegated there. |
static boolean |
isErrorEnabled()
Deprecated.
replaced by
Logger.isErrorEnabled() .
Functionality of this method is delegated there. |
static boolean |
isInfoEnabled()
Deprecated.
replaced by
Logger.isInfoEnabled() .
Functionality of this method is delegated there. |
static boolean |
isWarnEnabled()
Deprecated.
replaced by
Logger.isWarnEnabled() .
Functionality of this method is delegated there. |
static void |
markDebugLogFile(String username) |
static void |
markErrorLogFile(String username) |
static void |
markInfoLogFile(String username) |
static void |
markWarnLogFile(String username) |
static void |
rotateAllLogFile() |
static void |
rotateDebugLogFile() |
static void |
rotateErrorLogFile() |
static void |
rotateInfoLogFile() |
static void |
rotateWarnLogFile() |
static void |
setDebugEnabled(boolean enabled) |
static void |
setTraceEnabled(boolean enabled) |
static void |
warn(String s)
Deprecated.
replaced by
Logger.warn(String) .
Functionality of this method is delegated there. |
static void |
warn(String s,
Throwable throwable)
Deprecated.
replaced by
Logger.debug(String, Throwable) .
Functionality of this method is delegated there. |
static void |
warn(Throwable throwable)
Deprecated.
replaced by
Logger.warn(String, Throwable) .
Functionality of this method is delegated there. |
public static final SystemProperty<Boolean> DEBUG_ENABLED
@Deprecated public static final String LOG_DEBUG_ENABLED
DEBUG_ENABLED
public static final SystemProperty<Boolean> TRACE_ENABLED
@Deprecated public static final String LOG_TRACE_ENABLED
TRACE_ENABLED
@Deprecated public static boolean isErrorEnabled()
Logger.isErrorEnabled()
.
Functionality of this method is delegated there.true
if logging is enabed, otherwise false
@Deprecated public static boolean isDebugEnabled()
Logger.isDebugEnabled()
.
Functionality of this method is delegated there.true
if logging is enabed, otherwise false
public static void setDebugEnabled(boolean enabled)
public static void setTraceEnabled(boolean enabled)
@Deprecated public static boolean isInfoEnabled()
Logger.isInfoEnabled()
.
Functionality of this method is delegated there.true
if logging is enabed, otherwise false
@Deprecated public static boolean isWarnEnabled()
Logger.isWarnEnabled()
.
Functionality of this method is delegated there.true
if logging is enabed, otherwise false
@Deprecated public static void debug(String s)
Logger.debug(String)
.
Functionality of this method is delegated there.s
- the string to log@Deprecated public static void debug(Throwable throwable)
Logger.debug(String, Throwable)
.
Functionality of this method is delegated there.throwable
- the throwable to log@Deprecated public static void debug(String s, Throwable throwable)
Logger.debug(String, Throwable)
.
Functionality of this method is delegated there.s
- the string to logthrowable
- the throwable to logpublic static void markDebugLogFile(String username)
public static void rotateDebugLogFile()
@Deprecated public static void info(String s)
Logger.info(String)
.
Functionality of this method is delegated there.s
- the string to log@Deprecated public static void info(Throwable throwable)
Logger.info(String, Throwable)
.
Functionality of this method is delegated there.throwable
- the throwable to log@Deprecated public static void info(String s, Throwable throwable)
Logger.info(String, Throwable)
.
Functionality of this method is delegated there.s
- the string to logthrowable
- the throwable to logpublic static void markInfoLogFile(String username)
public static void rotateInfoLogFile()
@Deprecated public static void warn(String s)
Logger.warn(String)
.
Functionality of this method is delegated there.s
- the string to log@Deprecated public static void warn(Throwable throwable)
Logger.warn(String, Throwable)
.
Functionality of this method is delegated there.throwable
- the throwable to log@Deprecated public static void warn(String s, Throwable throwable)
Logger.debug(String, Throwable)
.
Functionality of this method is delegated there.s
- the string to logthrowable
- the throwable to logpublic static void markWarnLogFile(String username)
public static void rotateWarnLogFile()
@Deprecated public static void error(String s)
Logger.error(String)
.
Functionality of this method is delegated there.s
- the string to log@Deprecated public static void error(Throwable throwable)
Logger.error(String, Throwable)
.
Functionality of this method is delegated there.throwable
- the throwable to log@Deprecated public static void error(String s, Throwable throwable)
Logger.error(String, Throwable)
.
Functionality of this method is delegated there.s
- the string to logthrowable
- the throwable to logpublic static void markErrorLogFile(String username)
public static void rotateErrorLogFile()
public static void rotateAllLogFile()
public static String getLogDirectory()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.