public class SessionLog
extends java.lang.Object
Set PREFIX
and LOGGER
session attributes
to override prefix string and logger.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
LOGGER
Session attribute key:
Logger |
static java.lang.String |
PREFIX
Session attribute key: prefix string
|
构造器和说明 |
---|
SessionLog() |
限定符和类型 | 方法和说明 |
---|---|
static void |
debug(IoSession session,
java.lang.String message) |
static void |
debug(IoSession session,
java.lang.String message,
java.lang.Throwable cause) |
static void |
error(IoSession session,
java.lang.String message) |
static void |
error(IoSession session,
java.lang.String message,
java.lang.Throwable cause) |
static void |
info(IoSession session,
java.lang.String message) |
static void |
info(IoSession session,
java.lang.String message,
java.lang.Throwable cause) |
static boolean |
isDebugEnabled(IoSession session) |
static boolean |
isErrorEnabled(IoSession session) |
static boolean |
isInfoEnabled(IoSession session) |
static boolean |
isWarnEnabled(IoSession session) |
static void |
warn(IoSession session,
java.lang.String message) |
static void |
warn(IoSession session,
java.lang.String message,
java.lang.Throwable cause) |
public static final java.lang.String PREFIX
public static final java.lang.String LOGGER
Logger
public static void debug(IoSession session, java.lang.String message)
public static void debug(IoSession session, java.lang.String message, java.lang.Throwable cause)
public static void info(IoSession session, java.lang.String message)
public static void info(IoSession session, java.lang.String message, java.lang.Throwable cause)
public static void warn(IoSession session, java.lang.String message)
public static void warn(IoSession session, java.lang.String message, java.lang.Throwable cause)
public static void error(IoSession session, java.lang.String message)
public static void error(IoSession session, java.lang.String message, java.lang.Throwable cause)
public static boolean isDebugEnabled(IoSession session)
public static boolean isInfoEnabled(IoSession session)
public static boolean isWarnEnabled(IoSession session)
public static boolean isErrorEnabled(IoSession session)