public class Logging extends Object
java.util.Logging, System.out and System.err are tunneled through the logging system.
System.out and System.err are assigned to loggers named "stdout" and "stderr", respectively.
| 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:
|
void |
logToFile(String logPath,
int maxHistory,
long maxSizeInBytes) |
void |
setLevel(String loggerName,
Logging.Level level) |
void |
setLevels(File file) |
public static Logging initialize()
- INFO level - Log entries are written to stderr
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-2015 Airlift. All Rights Reserved.