public class Logging extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Logging.Level |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LoggingConfiguration config) |
void |
disableConsole() |
static Logging |
initialize()
Sets up default logging:
- INFO level
- Log entries are written to stderr
|
void |
logToFile(String logPath,
int maxHistory,
long maxSizeInBytes) |
void |
setLevel(String loggerName,
Logging.Level level) |
void |
setLevels(File file) |
public static Logging initialize()
public void disableConsole()
public void logToFile(String logPath, int maxHistory, long maxSizeInBytes)
public void setLevels(File file) throws IOException
IOExceptionpublic void setLevel(String loggerName, Logging.Level level)
public void configure(LoggingConfiguration config) throws IOException
IOExceptionCopyright © 2010-2014 Airlift. All Rights Reserved.