public final class ExtendedLogger extends Object
Constructor and Description |
---|
ExtendedLogger(Logger logger,
Level debugLevel)
Create new logger extension.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Handler handler) |
void |
config(String msg) |
void |
debugLog(String message)
Log a debug message using the configured debug level.
|
void |
debugLog(String messageTemplate,
Object... args)
Log a debug message using the configured debug level.
|
void |
entering(String sourceClass,
String sourceMethod) |
void |
entering(String sourceClass,
String sourceMethod,
Object param1) |
void |
entering(String sourceClass,
String sourceMethod,
Object[] params) |
boolean |
equals(Object obj) |
void |
exiting(String sourceClass,
String sourceMethod) |
void |
exiting(String sourceClass,
String sourceMethod,
Object result) |
void |
fine(String msg) |
void |
finer(String msg) |
void |
finest(String msg) |
Level |
getDebugLevel()
Get the configured debug level.
|
Filter |
getFilter() |
Handler[] |
getHandlers() |
Level |
getLevel() |
String |
getName() |
Logger |
getParent() |
ResourceBundle |
getResourceBundle() |
String |
getResourceBundleName() |
boolean |
getUseParentHandlers() |
int |
hashCode() |
void |
info(String msg) |
boolean |
isDebugLoggable()
Check if the debug level is loggable.
|
boolean |
isLoggable(Level level) |
void |
log(Level level,
String msg) |
void |
log(Level level,
String msg,
Object param1) |
void |
log(Level level,
String msg,
Object[] params) |
void |
log(Level level,
String msg,
Throwable thrown) |
void |
log(LogRecord record) |
void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg) |
void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1) |
void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params) |
void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Throwable thrown) |
void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg) |
void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object param1) |
void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object[] params) |
void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Throwable thrown) |
void |
removeHandler(Handler handler) |
void |
setFilter(Filter newFilter) |
void |
setLevel(Level newLevel) |
void |
setParent(Logger parent) |
void |
setUseParentHandlers(boolean useParentHandlers) |
void |
severe(String msg) |
void |
throwing(String sourceClass,
String sourceMethod,
Throwable thrown) |
String |
toString() |
void |
warning(String msg) |
public boolean isDebugLoggable()
true
if the debug level is loggable, false
otherwise.public Level getDebugLevel()
public void debugLog(String message)
message
- debug message.public void debugLog(String messageTemplate, Object... args)
messageTemplate
- debug message template.args
- message template parameters.public void warning(String msg)
public void severe(String msg)
public void setUseParentHandlers(boolean useParentHandlers)
public void setParent(Logger parent)
public void setLevel(Level newLevel) throws SecurityException
SecurityException
public void setFilter(Filter newFilter) throws SecurityException
SecurityException
public void removeHandler(Handler handler) throws SecurityException
SecurityException
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)
public void log(LogRecord record)
public boolean isLoggable(Level level)
public void info(String msg)
public boolean getUseParentHandlers()
public String getResourceBundleName()
public ResourceBundle getResourceBundle()
public Logger getParent()
public String getName()
public Level getLevel()
public Handler[] getHandlers()
public Filter getFilter()
public void finest(String msg)
public void finer(String msg)
public void fine(String msg)
public void config(String msg)
public void addHandler(Handler handler) throws SecurityException
SecurityException
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.