public class LoggerFactory extends Object
| Constructor and Description |
|---|
LoggerFactory(Application app,
Appender defaultAppender)
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.
|
IAsync<Exception> |
flush()
Return a synchronization point that will be unblocked as soon as all pending logs have been written.
|
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, Appender defaultAppender)
public Application getApplication()
public Logger getDefault()
public void setDefault(Appender appender)
public IAsync<Exception> flush()
public void configure(String name, Appender appender, Logger.Level level)
public void configure(String url)
public void configure(InputStream input) throws LoggerConfigurationException, XMLStreamException, IOException
public void configure(XMLStreamReader reader) throws LoggerConfigurationException, XMLStreamException
Copyright © 2019. All rights reserved.