com.protomatter.syslog.util.logging
Class Logger
java.lang.Object
|
+--com.protomatter.syslog.util.logging.Logger
- public class Logger
- extends java.lang.Object
See java.util.logging.Logger.
Note that if you use this class, and don't have Syslog configured to compute
the caller class and method, then the caller name in your logs will be
incorrect. This is because the JDK 1.4 logging API doesn't have a mechanism
for directly getting a reference to the caller.
Constructor Summary |
protected |
Logger(java.lang.String name,
java.lang.String resourceBundleName)
|
Method Summary |
void |
config(java.lang.String message)
|
void |
entering(java.lang.String className,
java.lang.String methodName)
|
void |
entering(java.lang.String className,
java.lang.String methodName,
java.lang.Object param)
|
void |
entering(java.lang.String className,
java.lang.String methodName,
java.lang.Object[] params)
|
void |
exiting(java.lang.String className,
java.lang.String methodName)
|
void |
exiting(java.lang.String className,
java.lang.String methodName,
java.lang.Object param)
|
void |
fine(java.lang.String message)
|
void |
finer(java.lang.String message)
|
void |
finest(java.lang.String message)
|
static Logger |
getAnonymousLogger()
|
static Logger |
getAnonymousLogger(java.lang.String resourceBundleName)
|
Level |
getLevel()
|
static Logger |
getLogger(java.lang.String name)
|
static Logger |
getLogger(java.lang.String name,
java.lang.String resourceBundleName)
|
java.lang.String |
getName()
|
java.util.ResourceBundle |
getResourceBundle()
|
java.lang.String |
getResourceBundleName()
|
void |
info(java.lang.String message)
|
boolean |
isLoggable(Level level)
|
void |
log(Level level,
java.lang.String message)
|
void |
log(Level level,
java.lang.String message,
java.lang.Object param)
|
void |
log(Level level,
java.lang.String message,
java.lang.Object[] params)
|
void |
log(Level level,
java.lang.String message,
java.lang.Throwable t)
|
void |
logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message)
|
void |
logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Object param)
|
void |
logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Object[] params)
|
void |
logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
|
void |
logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message)
|
void |
logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Object param)
|
void |
logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Object[] params)
|
void |
logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Throwable t)
|
void |
setLevel(Level level)
|
void |
severe(java.lang.String message)
|
void |
throwing(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable t)
|
void |
warning(java.lang.String message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
global
public static final Logger global
Logger
protected Logger(java.lang.String name,
java.lang.String resourceBundleName)
getLogger
public static Logger getLogger(java.lang.String name)
getLogger
public static Logger getLogger(java.lang.String name,
java.lang.String resourceBundleName)
getAnonymousLogger
public static Logger getAnonymousLogger()
getAnonymousLogger
public static Logger getAnonymousLogger(java.lang.String resourceBundleName)
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
getResourceBundleName
public java.lang.String getResourceBundleName()
log
public void log(Level level,
java.lang.String message)
log
public void log(Level level,
java.lang.String message,
java.lang.Object param)
log
public void log(Level level,
java.lang.String message,
java.lang.Object[] params)
log
public void log(Level level,
java.lang.String message,
java.lang.Throwable t)
logp
public void logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message)
logp
public void logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Object param)
logp
public void logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Object[] params)
logp
public void logp(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
logrb
public void logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message)
logrb
public void logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Object param)
logrb
public void logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Object[] params)
logrb
public void logrb(Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String bundleName,
java.lang.String message,
java.lang.Throwable t)
entering
public void entering(java.lang.String className,
java.lang.String methodName)
entering
public void entering(java.lang.String className,
java.lang.String methodName,
java.lang.Object param)
entering
public void entering(java.lang.String className,
java.lang.String methodName,
java.lang.Object[] params)
exiting
public void exiting(java.lang.String className,
java.lang.String methodName)
exiting
public void exiting(java.lang.String className,
java.lang.String methodName,
java.lang.Object param)
throwing
public void throwing(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable t)
severe
public void severe(java.lang.String message)
warning
public void warning(java.lang.String message)
info
public void info(java.lang.String message)
config
public void config(java.lang.String message)
fine
public void fine(java.lang.String message)
finer
public void finer(java.lang.String message)
finest
public void finest(java.lang.String message)
setLevel
public void setLevel(Level level)
throws java.lang.SecurityException
getLevel
public Level getLevel()
isLoggable
public boolean isLoggable(Level level)
getName
public java.lang.String getName()