|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anwrt.ooserver.daemon.Logger
public abstract class Logger
Static class.
The logger is used by calling Logger's static methods such as info, debug, etc...
WARNING You must first instantiate a Logger,
Logger.newInstance(new LoggerBasicImpl()); for example.
Other loggers can be created using LoggerBasicImpl as an example.
Field Summary | |
---|---|
static int |
DEBUG
|
static int |
DETAILED_DEBUG
|
static int |
ERROR
|
static int |
INFO
|
protected static int |
level
|
static String[] |
levelStrings
|
static int |
NB_LEVELS
|
static int |
NONE
|
static int |
WARNING
|
Constructor Summary | |
---|---|
Logger()
|
Method Summary | |
---|---|
static void |
debug(Exception ex)
|
static void |
debug(String msg)
|
static void |
debug(String msg,
Exception ex)
|
protected abstract void |
debugImpl(Exception ex)
|
protected abstract void |
debugImpl(String msg)
|
protected abstract void |
debugImpl(String msg,
Exception ex)
|
static void |
detailedDebug(Exception ex)
|
protected abstract void |
detailedDebugImpl(Exception ex)
|
static void |
error(String msg)
|
protected abstract void |
errorImpl(String msg)
|
static void |
fatalError(String msg)
|
static void |
fatalError(String msg,
Exception ex)
|
protected abstract void |
fatalErrorImpl(String msg)
|
protected abstract void |
fatalErrorImpl(String msg,
Exception ex)
|
static Logger |
getInstance()
Returns the current Logger instance. |
static int |
getLevel()
Returns log level |
static void |
info(String msg)
|
protected abstract void |
infoImpl(String msg)
|
static String |
levelInformation(String prefixTabs)
Returns informations about logging levels |
String |
levelToString()
Converts the current level to String |
static void |
newInstance(Logger instance)
Used to specify which instance will be used by the static methods of the Logger. |
static void |
setLevel(int lvl)
Used to set the log level. |
static void |
setLevel(String lvlStr)
Used to set the log level. |
String |
toString()
displays logger's level |
static void |
warning(String msg)
|
protected abstract void |
warningImpl(String msg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int ERROR
public static final int INFO
public static final int WARNING
public static final int DEBUG
public static final int DETAILED_DEBUG
public static final int NB_LEVELS
public static final String[] levelStrings
protected static int level
Constructor Detail |
---|
public Logger()
Method Detail |
---|
public static void newInstance(Logger instance)
instance
- a child of the abstract class Logger (ex : LoggerBasicImpl)public static Logger getInstance()
public static void setLevel(int lvl) throws IncorrectLoggerLevelException
lvl
- level such as INFO, WARNING, DEBUG, ...
IncorrectLoggerLevelException
- level passed as an argument is not validpublic static void setLevel(String lvlStr) throws IncorrectLoggerLevelException
lvlStr
- level such as INFO, WARNING, DEBUG, ...
IncorrectLoggerLevelException
- level passed as an argument is not validpublic String levelToString()
public static int getLevel()
protected abstract void infoImpl(String msg)
public static void info(String msg)
protected abstract void warningImpl(String msg)
public static void warning(String msg)
protected abstract void debugImpl(String msg)
public static void debug(String msg)
protected abstract void debugImpl(String msg, Exception ex)
public static void debug(String msg, Exception ex)
protected abstract void debugImpl(Exception ex)
public static void debug(Exception ex)
protected abstract void detailedDebugImpl(Exception ex)
public static void detailedDebug(Exception ex)
protected abstract void errorImpl(String msg)
public static void error(String msg)
protected abstract void fatalErrorImpl(String msg)
public static void fatalError(String msg)
protected abstract void fatalErrorImpl(String msg, Exception ex)
public static void fatalError(String msg, Exception ex)
public String toString()
toString
in class Object
Object.toString()
public static String levelInformation(String prefixTabs)
prefixTabs
- optional tabs that will be written before displaying
a line for indentation
|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |