|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Logger
com.sun.jdo.spi.persistence.utility.logging.LoggerJDK14
public class LoggerJDK14
This class is used with JDK 1.4 (and higher) programs to log messages from jdo components. It extends a java.util.logging.Logger which does the actual logging.
| Field Summary | |
|---|---|
protected String |
sourceClassName
Class that issued logging call; set by inferCaller. |
protected String |
sourceMethodName
Method that issued logging call; set by inferCaller. |
| Fields inherited from class java.util.logging.Logger |
|---|
global, GLOBAL_LOGGER_NAME |
| Fields inherited from interface com.sun.jdo.spi.persistence.utility.logging.Logger |
|---|
ALL, CONFIG, FINE, FINER, FINEST, INFO, OFF, SEVERE, WARNING |
| Constructor Summary | |
|---|---|
LoggerJDK14(String loggerName,
String bundleName)
Creates new LoggerJDK14. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.logging.Logger |
|---|
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.jdo.spi.persistence.utility.logging.Logger |
|---|
config, entering, entering, entering, exiting, exiting, fine, finer, finest, getName, info, severe, throwing, warning |
| Field Detail |
|---|
protected String sourceClassName
protected String sourceMethodName
| Constructor Detail |
|---|
public LoggerJDK14(String loggerName,
String bundleName)
loggerName - the full domain name of this loggerbundleName - the bundle name for message translation| Method Detail |
|---|
public boolean isLoggable()
isLoggable in interface Logger
public 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.
fine in interface Loggermsg - The string message (or a key in the message catalog)o - Objects to be inserted into the message
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.
fine in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the message
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.
fine in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the message
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.
fine in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the messageo3 - A parameter to be inserted into the message
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.
finer in interface Loggermsg - The string message (or a key in the message catalog)o - Objects to be inserted into the message
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.
finer in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the message
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.
finer in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the message
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.
finer in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the messageo3 - A parameter to be inserted into the message
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.
finest in interface Loggermsg - The string message (or a key in the message catalog)o - Objects to be inserted into the message
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.
finest in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the message
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.
finest in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the message
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.
finest in interface Loggermsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the messageo3 - A parameter to be inserted into the messagepublic String toString()
toString in class Object
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the message
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the message
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)o1 - A parameter to be inserted into the messageo2 - A parameter to be inserted into the messageo3 - A parameter to be inserted into the message
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)o - Objects to be inserted into the message
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)
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.
log in interface Loggerlevel - The level for this messagemsg - The string message (or a key in the message catalog)thrown - The exception to logpublic boolean isLoggable(int levelValue)
isLoggable in interface LoggerlevelValue - the level to check
protected Level convertLevel(int level)
level - the level to convert
protected 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||