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 | Method and Description |
|---|---|
void |
configure(LoggingConfiguration config) |
void |
disableConsole() |
Map<String,Level> |
getAllLevels() |
Level |
getLevel(String loggerName) |
Level |
getRootLevel() |
static Logging |
initialize()
Sets up default logging:
|
void |
logToFile(String logPath,
int maxHistory,
long maxSizeInBytes) |
void |
setLevel(String loggerName,
Level level) |
void |
setLevels(File file) |
void |
setRootLevel(Level newLevel) |
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 Level getRootLevel()
public void setRootLevel(Level newLevel)
public void setLevels(File file) throws IOException
IOExceptionpublic void configure(LoggingConfiguration config) throws IOException
IOExceptionCopyright © 2010-2015 Airlift. All Rights Reserved.