public class DefaultLoggerContext extends Object implements RootLoggerContext
Modifier and Type | Class and Description |
---|---|
class |
DefaultLoggerContext.FileWatcher
From https://stackoverflow.com/questions/16251273/can-i-watch-for-single-file-change-with-watchservice-not-the-whole-directory
|
Constructor and Description |
---|
DefaultLoggerContext() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
enableConsole(Log.Level level) |
void |
enableFile(Log.Level level,
File logFile) |
void |
enableFile(Log.Level level,
File logFile,
int maxFiles,
long maxSize) |
void |
enableFile(Log.Level level,
String logFile) |
String |
getProperty(String key,
String defaultValue) |
boolean |
isLogging(Log.Level level) |
void |
log(Log.Level level,
String msg,
Throwable e,
Object... args) |
void |
newline() |
static String |
prepareLog(Log.Level level,
String msg,
Throwable e,
Object... args) |
String |
processTokenReplacements(String value,
Properties tokenResolver) |
void |
raw(Log.Level level,
String msg) |
void |
shutdown() |
public String getProperty(String key, String defaultValue)
getProperty
in interface RootLoggerContext
public void shutdown()
shutdown
in interface RootLoggerContext
public String processTokenReplacements(String value, Properties tokenResolver)
public void enableConsole(Log.Level level)
enableConsole
in interface RootLoggerContext
public boolean isLogging(Log.Level level)
isLogging
in interface LoggerContext
public static String prepareLog(Log.Level level, String msg, Throwable e, Object... args)
public void log(Log.Level level, String msg, Throwable e, Object... args)
log
in interface LoggerContext
public void raw(Log.Level level, String msg)
raw
in interface LoggerContext
public void close()
close
in interface LoggerContext
public void newline()
newline
in interface LoggerContext
Copyright © 2024. All rights reserved.