public abstract class ExoLogger extends Object
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)
.
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 and Description |
|---|
ExoLogger() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void setFactory(ExoLogFactory factory) throws IllegalArgumentException
factory - ExoLogFactory, the new factoryIllegalArgumentException - when the factory is nullpublic static Log getLogger(String name)
getExoLogger(String).name - String, the logger namepublic static Log getLogger(Class name)
getExoLogger(Class).name - Class, the logger namepublic static Log getExoLogger(String name) throws IllegalArgumentException
name - the logger nameIllegalArgumentException - if the name is nullpublic static Log getExoLogger(Class name) throws IllegalArgumentException
name - the logger nameIllegalArgumentException - if the name is nullCopyright © 2020 eXo Platform SAS. All Rights Reserved.