public class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_LOGGER_NAME |
Modifier | Constructor and Description |
---|---|
protected |
Logger(String name,
String resourceName) |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Handler handler) |
void |
config(String msg) |
void |
config(Supplier<String> msgSupplier) |
void |
fine(String msg) |
void |
fine(Supplier<String> msgSupplier) |
void |
finer(String msg) |
void |
finer(Supplier<String> msgSupplier) |
void |
finest(String msg) |
void |
finest(Supplier<String> msgSupplier) |
static Logger |
getGlobal() |
Handler[] |
getHandlers() |
Level |
getLevel() |
static Logger |
getLogger(String name) |
String |
getName() |
Logger |
getParent() |
boolean |
getUseParentHandlers() |
void |
info(String msg) |
void |
info(Supplier<String> msgSupplier) |
boolean |
isLoggable(Level messageLevel) |
void |
log(Level level,
String msg) |
void |
log(Level level,
String msg,
Throwable thrown) |
void |
log(Level level,
Supplier<String> msgSupplier) |
void |
log(Level level,
Throwable thrown,
Supplier<String> msgSupplier) |
void |
log(LogRecord record) |
void |
removeHandler(Handler handler) |
void |
setLevel(Level newLevel) |
void |
setParent(Logger newParent) |
void |
setUseParentHandlers(boolean newUseParentHandlers) |
void |
severe(String msg) |
void |
severe(Supplier<String> msgSupplier) |
void |
warning(String msg) |
void |
warning(Supplier<String> msgSupplier) |
public static final String GLOBAL_LOGGER_NAME
public static Logger getGlobal()
public void addHandler(Handler handler)
public void config(String msg)
public void fine(String msg)
public void finer(String msg)
public void finest(String msg)
public void info(String msg)
public void warning(String msg)
public void severe(String msg)
public Handler[] getHandlers()
public Level getLevel()
public String getName()
public Logger getParent()
public boolean getUseParentHandlers()
public boolean isLoggable(Level messageLevel)
public void log(LogRecord record)
public void removeHandler(Handler handler)
public void setLevel(Level newLevel)
public void setParent(Logger newParent)
public void setUseParentHandlers(boolean newUseParentHandlers)
Copyright © 2018. All rights reserved.