public class LoggerFactory extends Object
| Constructor and Description |
|---|
LoggerFactory(Application app)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InputStream input)
Load configuration from a file.
|
void |
configure(String url)
Load configuration from a file.
|
void |
configure(String name,
Appender appender,
Logger.Level level)
Configure a logger with an appender.
|
void |
configure(XMLStreamReader reader)
Load configuration from a file.
|
Application |
getApplication() |
Logger |
getDefault() |
Logger |
getLogger(Class<?> cl)
Return the logger for the given class.
|
Logger |
getLogger(String name)
Return the logger with the given name.
|
void |
setDefault(Appender appender)
Set the default appender.
|
public LoggerFactory(Application app)
public Application getApplication()
public Logger getDefault()
public void setDefault(Appender appender)
public void configure(String name, Appender appender, Logger.Level level)
public void configure(String url)
public void configure(InputStream input) throws Exception
Exceptionpublic void configure(XMLStreamReader reader) throws Exception
ExceptionCopyright © 2017. All rights reserved.