| Modifier and Type | Field and Description |
|---|---|
protected String |
sourceClassName
Class that issued logging call; set by inferCaller.
|
protected String |
sourceMethodName
Method that issued logging call; set by inferCaller.
|
global, GLOBAL_LOGGER_NAME| Constructor and Description |
|---|
LoggerJDK14(String loggerName,
String bundleName)
Creates new LoggerJDK14.
|
| Modifier and Type | Method and Description |
|---|---|
protected Level |
convertLevel(int level)
Convert an int level used by jdo logger to the Level instance used
by JDK 1.4 logger.
|
void |
fine(String msg,
Object o1)
Log a FINE message.
|
void |
fine(String msg,
Object[] o)
Log a FINE message.
|
void |
fine(String msg,
Object o1,
Object o2)
Log a FINE message.
|
void |
fine(String msg,
Object o1,
Object o2,
Object o3)
Log a FINE message.
|
void |
finer(String msg,
Object o1)
Log a FINER message.
|
void |
finer(String msg,
Object[] o)
Log a FINER message.
|
void |
finer(String msg,
Object o1,
Object o2)
Log a FINER message.
|
void |
finer(String msg,
Object o1,
Object o2,
Object o3)
Log a FINER message.
|
void |
finest(String msg,
Object o1)
Log a FINEST message.
|
void |
finest(String msg,
Object[] o)
Log a FINEST message.
|
void |
finest(String msg,
Object o1,
Object o2)
Log a FINEST message.
|
void |
finest(String msg,
Object o1,
Object o2,
Object o3)
Log a FINEST message.
|
protected void |
inferCaller()
Method to infer the caller's class name and method name.
|
boolean |
isLoggable()
Return whether logging is enabled
at the FINE level.
|
boolean |
isLoggable(int levelValue)
Check if a message of the given level would actually be logged
by this logger.
|
protected boolean |
isLoggerClass(String className)
This method is a helper method for
inferCaller(). |
void |
log(int level,
String msg)
Log a message.
|
void |
log(int level,
String msg,
Object o1)
Log a message.
|
void |
log(int level,
String msg,
Object[] o)
Log a message.
|
void |
log(int level,
String msg,
Object o1,
Object o2)
Log a message.
|
void |
log(int level,
String msg,
Object o1,
Object o2,
Object o3)
Log a message.
|
void |
log(int level,
String msg,
Throwable thrown)
Log a message.
|
String |
toString()
Prepare a printable version of this instance.
|
addHandler, config, config, entering, entering, entering, exiting, exiting, fine, fine, finer, finer, finest, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, info, isLoggable, log, log, log, log, log, log, log, logp, logp, logp, logp, logp, logp, logrb, logrb, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setResourceBundle, setUseParentHandlers, severe, severe, throwing, warning, warningprotected String sourceClassName
protected String sourceMethodName
public LoggerJDK14(String loggerName, String bundleName)
loggerName - the full domain name of this loggerbundleName - the bundle name for message translationpublic boolean isLoggable()
isLoggable in interface Loggerpublic void fine(String msg, Object[] o)
If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.
public void fine(String msg, Object o1)
If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.
public void fine(String msg, Object o1, Object o2)
If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.
public void fine(String msg, Object o1, Object o2, Object o3)
If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.
public void finer(String msg, Object[] o)
If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects.
public void finer(String msg, Object o1)
If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects.
public void finer(String msg, Object o1, Object o2)
If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects.
public void finer(String msg, Object o1, Object o2, Object o3)
If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects.
public void finest(String msg, Object[] o)
If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered output Handler objects.
public void finest(String msg, Object o1)
If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered output Handler objects.
public void finest(String msg, Object o1, Object o2)
If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered output Handler objects.
public void finest(String msg, Object o1, Object o2, Object o3)
If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered output Handler objects.
public String toString()
public void log(int level,
String msg,
Object o1)
If the logger is currently enabled for the message level then the given message is forwarded to all the registered output Handler objects.
public void log(int level,
String msg,
Object o1,
Object o2)
If the logger is currently enabled for the message level then the given message is forwarded to all the registered output Handler objects.
public void log(int level,
String msg,
Object o1,
Object o2,
Object o3)
If the logger is currently enabled for the message level then the given message is forwarded to all the registered output Handler objects.
public void log(int level,
String msg,
Object[] o)
If the logger is currently enabled for the message level then the given message is forwarded to all the registered output Handler objects.
public void log(int level,
String msg)
If the logger is currently enabled for the message level then the given message is forwarded to all the registered output Handler objects.
public void log(int level,
String msg,
Throwable thrown)
If the logger is currently enabled for the message level then the given message, and the exception dump, is forwarded to all the registered output Handler objects.
public boolean isLoggable(int levelValue)
isLoggable in interface LoggerlevelValue - the level to checkprotected Level convertLevel(int level)
level - the level to convertprotected void inferCaller()
protected boolean isLoggerClass(String className)
inferCaller(). It returns
true if the specified class name denotes a logger class
that should be ignored when analysing the stack trace to infer the
caller of a log message.className - the class name to be checked.true if the specified name denotes a logger class;
false otherwise.Copyright © 2017. All rights reserved.