|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.beanfabrics.log.LoggerFactory
public class LoggerFactory
Beanfabrics classes use this LoggerFactory for producing a
Logger instance.
Slf4jLogger is produced as default if the SLF4J api is included in
the classpath. Otherwise a Jdk14Logger is produced.
You can configure this factory to produceFa custom Logger by
setLoggerClass(Class)
Logger's
classname.
LoggerFactory and
Logger to be runtime independent of any foreign library.
| Field Summary | |
|---|---|
static java.lang.String |
SYSPROPKEY_LOGGER
The key of the system property to set a custom Logger. |
| Constructor Summary | |
|---|---|
LoggerFactory()
|
|
| Method Summary | |
|---|---|
static Logger |
getLogger(java.lang.Class clazz)
Returns a the Logger instance for a certain Class. |
static void |
setLoggerClass(java.lang.Class clazz)
Set the Class implementing the Logger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SYSPROPKEY_LOGGER
Logger.
| Constructor Detail |
|---|
public LoggerFactory()
| Method Detail |
|---|
public static Logger getLogger(java.lang.Class clazz)
Logger instance for a certain Class.
clazz - the Class the Logger is for
Logger instance
public static void setLoggerClass(java.lang.Class clazz)
throws java.lang.IllegalArgumentException
Class implementing the Logger. This class will be
used to create new instances by getLogger(Class).
clazz - the Class implementing the Logger
java.lang.IllegalArgumentException - if clazz is
null, does not implement Logger or has
no constructor with the argument "Class
clazz"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||