net.sf.emarket.utils
Class LoggerOld
java.lang.Object
net.sf.emarket.utils.LoggerOld
public class LoggerOld
- extends java.lang.Object
Logger Description.
- Author:
- : snambi
Method Summary |
void |
debug(java.lang.String msg)
|
void |
fine(java.lang.String msg)
|
java.util.logging.Level |
getLevel()
|
static java.util.logging.Logger |
getLogger(java.lang.Class clz)
|
static java.util.logging.Logger |
getLogger(java.lang.String name)
|
void |
info(java.lang.String msg)
|
static void |
init()
|
static void |
init(java.util.logging.Level level,
boolean isConsoleEnabled)
|
static void |
init(java.lang.String logname,
java.util.logging.Level level,
boolean isConsoleEnabled)
init initializes the root logger based on a properties file. |
static void |
initWithNoConsole()
|
boolean |
isDebugEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isSevereEnabled()
|
void |
log(java.util.logging.Level level,
java.lang.String msg)
|
void |
log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Object obj)
|
void |
log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Object[] obj)
|
void |
log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable t)
|
void |
setLevel(java.util.logging.Level level)
|
void |
severe(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerOld
protected LoggerOld(java.util.logging.Logger log)
LoggerOld
public LoggerOld()
getLogger
public static java.util.logging.Logger getLogger(java.lang.String name)
getLogger
public static java.util.logging.Logger getLogger(java.lang.Class clz)
init
public static void init(java.lang.String logname,
java.util.logging.Level level,
boolean isConsoleEnabled)
init
initializes the root logger based on a properties file.
if the file is not available, it is initialized with default level (FINE).
- Parameters:
logname
- name of the log fileisConsoleEnabled
- send log messages to the console if it is true.
init
public static void init()
initWithNoConsole
public static void initWithNoConsole()
init
public static void init(java.util.logging.Level level,
boolean isConsoleEnabled)
debug
public void debug(java.lang.String msg)
fine
public void fine(java.lang.String msg)
info
public void info(java.lang.String msg)
severe
public void severe(java.lang.String msg)
isDebugEnabled
public boolean isDebugEnabled()
isInfoEnabled
public boolean isInfoEnabled()
isSevereEnabled
public boolean isSevereEnabled()
setLevel
public void setLevel(java.util.logging.Level level)
getLevel
public java.util.logging.Level getLevel()
log
public void log(java.util.logging.Level level,
java.lang.String msg)
log
public void log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Object obj)
log
public void log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Object[] obj)
log
public void log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable t)
Copyright © 2009. All Rights Reserved.