|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.log.ExoLogger
public abstract class ExoLogger
The logger definition for exo platform.
ExoLogger it's wrapping factory for different Log factories existing in runtime for eXo.
The logger implements the Log interface
for backward compatibility purpose.
This class is also the way to obtain a reference to a logger through the
static methods getExoLogger(String) and getExoLogger(Class)
.
The factory methods delegates to an instance of
ExoLogFactory that is determined by
the following rules
SLF4JExoLogFactory. It is
possible to change the instance at runtime by calling the static method
setFactory(ExoLogFactory).NoClassDefFoundError then a factory instance of class
SimpleExoLogFactory is used for
fail over.
| Constructor Summary | |
|---|---|
ExoLogger()
|
|
| Method Summary | |
|---|---|
static Log |
getExoLogger(Class name)
Returns a specified logger. |
static Log |
getExoLogger(String name)
Returns a specified logger. |
static Log |
getLogger(Class name)
Use instead getExoLogger(Class). |
static Log |
getLogger(String name)
Use instead getExoLogger(String). |
static void |
setFactory(ExoLogFactory factory)
Configures the exo logger factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExoLogger()
| Method Detail |
|---|
public static void setFactory(ExoLogFactory factory)
throws IllegalArgumentException
factory - ExoLogFactory, the new factory
IllegalArgumentException - when the factory is nullpublic static Log getLogger(String name)
getExoLogger(String).
name - String, the logger name
public static Log getLogger(Class name)
getExoLogger(Class).
name - Class, the logger name
public static Log getExoLogger(String name)
throws IllegalArgumentException
name - the logger name
IllegalArgumentException - if the name is null
public static Log getExoLogger(Class name)
throws IllegalArgumentException
name - the logger name
IllegalArgumentException - if the name is null
|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||