org.apache.mina.util
Class SessionLog

java.lang.Object
  extended by org.apache.mina.util.SessionLog

public class SessionLog
extends Object

Call getLogger(Session), log(Level,Session, String), and log(Level,Session, String, Throwable) to log protocol-specific messages.

Set PREFIX and LOGGER session attributes to override prefix string, logger, and log level.

Version:
$Rev: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org), Trustin Lee (trustin@apache.org)

Field Summary
static String LOGGER
          Session attribute key: Logger
static String PREFIX
          Session attribute key: prefix string
 
Constructor Summary
SessionLog()
           
 
Method Summary
static Logger getLogger(Session session)
           
static void log(Level level, Session session, String message)
           
static void log(Level level, Session session, String message, Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
Session attribute key: prefix string


LOGGER

public static final String LOGGER
Session attribute key: Logger

Constructor Detail

SessionLog

public SessionLog()
Method Detail

getLogger

public static Logger getLogger(Session session)

log

public static void log(Level level,
                       Session session,
                       String message)

log

public static void log(Level level,
                       Session session,
                       String message,
                       Throwable cause)


Copyright © 2004-2005 . All Rights Reserved.