|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.Logger
org.apache.logging.log4j.jul.ApiLogger
public class ApiLogger
Log4j API implementation of the JUL Logger class. Note that this implementation does
not use the Handler class. Instead, logging is delegated to the
underlying Log4j Logger which may be implemented in one of many different ways.
Consult the documentation for your Log4j Provider for more details.
Note that the methods Logger.getParent() and setLevel(java.util.logging.Level) are not supported by
this implementation. If you need support for these methods, then you'll need to use log4j-core. The
Logger.getParent() method will not fail (thanks to JUL API limitations), but it won't necessarily be
accurate!
Also note that setParent(java.util.logging.Logger) is explicitly unsupported. Parent loggers are
determined using the syntax of the logger name; not through an arbitrary graph of loggers.
| Field Summary |
|---|
| Fields inherited from class java.util.logging.Logger |
|---|
global, GLOBAL_LOGGER_NAME |
| Method Summary | |
|---|---|
void |
config(String msg)
|
protected void |
doSetLevel(Level newLevel)
Provides access to Logger.setLevel(java.util.logging.Level). |
void |
entering(String sourceClass,
String sourceMethod)
|
void |
entering(String sourceClass,
String sourceMethod,
Object param1)
|
void |
entering(String sourceClass,
String sourceMethod,
Object[] params)
|
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)
|
String |
getName()
|
void |
info(String msg)
|
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 |
setLevel(Level newLevel)
|
void |
setParent(Logger parent)
Unsupported operation. |
void |
severe(String msg)
|
void |
throwing(String sourceClass,
String sourceMethod,
Throwable thrown)
|
void |
warning(String msg)
|
| Methods inherited from class java.util.logging.Logger |
|---|
addHandler, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, removeHandler, setFilter, setUseParentHandlers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void log(LogRecord record)
log in class Loggerpublic boolean isLoggable(Level level)
isLoggable in class Loggerpublic String getName()
getName in class Logger
public void setLevel(Level newLevel)
throws SecurityException
setLevel in class LoggerSecurityException
protected void doSetLevel(Level newLevel)
throws SecurityException
Logger.setLevel(java.util.logging.Level). This method should only be used by child
classes.
SecurityExceptionLogger.setLevel(java.util.logging.Level)public void setParent(Logger parent)
setParent in class LoggerUnsupportedOperationException - always
public void log(Level level,
String msg)
log in class Logger
public void log(Level level,
String msg,
Object param1)
log in class Logger
public void log(Level level,
String msg,
Object[] params)
log in class Logger
public void log(Level level,
String msg,
Throwable thrown)
log in class Logger
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg)
logp in class Logger
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1)
logp in class Logger
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params)
logp in class Logger
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Throwable thrown)
logp in class Logger
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg)
logrb in class Logger
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object param1)
logrb in class Logger
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object[] params)
logrb in class Logger
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Throwable thrown)
logrb in class Logger
public void entering(String sourceClass,
String sourceMethod)
entering in class Logger
public void entering(String sourceClass,
String sourceMethod,
Object param1)
entering in class Logger
public void entering(String sourceClass,
String sourceMethod,
Object[] params)
entering in class Logger
public void exiting(String sourceClass,
String sourceMethod)
exiting in class Logger
public void exiting(String sourceClass,
String sourceMethod,
Object result)
exiting in class Logger
public void throwing(String sourceClass,
String sourceMethod,
Throwable thrown)
throwing in class Loggerpublic void severe(String msg)
severe in class Loggerpublic void warning(String msg)
warning in class Loggerpublic void info(String msg)
info in class Loggerpublic void config(String msg)
config in class Loggerpublic void fine(String msg)
fine in class Loggerpublic void finer(String msg)
finer in class Loggerpublic void finest(String msg)
finest in class Logger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.