org.apache.cxf.common.logging
Class AbstractDelegatingLogger
java.lang.Object
java.util.logging.Logger
org.apache.cxf.common.logging.AbstractDelegatingLogger
- Direct Known Subclasses:
- Log4jLogger, Slf4jLogger
public abstract class AbstractDelegatingLogger
- extends Logger
java.util.logging.Logger implementation delegating to another framework.
All methods can be used except:
setLevel
addHandler / getHandlers
setParent / getParent
setUseParentHandlers / getUseParentHandlers
- Author:
- gnodet
Method Summary |
void |
addHandler(Handler handler)
|
void |
config(String msg)
|
protected void |
doLog(LogRecord lr)
|
protected void |
doLog(LogRecord lr,
String rbname)
|
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)
|
protected String |
formatMessage(LogRecord record)
|
Handler[] |
getHandlers()
|
abstract Level |
getLevel()
|
Logger |
getParent()
|
boolean |
getUseParentHandlers()
|
void |
info(String msg)
|
protected void |
internalLog(LogRecord record)
|
protected abstract void |
internalLogFormatted(String msg,
LogRecord record)
|
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 |
setLevel(Level newLevel)
|
void |
setParent(Logger parent)
|
void |
setUseParentHandlers(boolean useParentHandlers)
|
void |
severe(String msg)
|
void |
throwing(String sourceClass,
String sourceMethod,
Throwable thrown)
|
void |
warning(String msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDelegatingLogger
protected AbstractDelegatingLogger(String name,
String resourceBundleName)
log
public void log(LogRecord record)
- Overrides:
log
in class Logger
log
public void log(Level level,
String msg)
- Overrides:
log
in class Logger
log
public void log(Level level,
String msg,
Object param1)
- Overrides:
log
in class Logger
log
public void log(Level level,
String msg,
Object[] params)
- Overrides:
log
in class Logger
log
public void log(Level level,
String msg,
Throwable thrown)
- Overrides:
log
in class Logger
logp
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg)
- Overrides:
logp
in class Logger
logp
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1)
- Overrides:
logp
in class Logger
logp
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params)
- Overrides:
logp
in class Logger
logp
public void logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Throwable thrown)
- Overrides:
logp
in class Logger
logrb
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg)
- Overrides:
logrb
in class Logger
logrb
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object param1)
- Overrides:
logrb
in class Logger
logrb
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object[] params)
- Overrides:
logrb
in class Logger
logrb
public void logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Throwable thrown)
- Overrides:
logrb
in class Logger
entering
public void entering(String sourceClass,
String sourceMethod)
- Overrides:
entering
in class Logger
entering
public void entering(String sourceClass,
String sourceMethod,
Object param1)
- Overrides:
entering
in class Logger
entering
public void entering(String sourceClass,
String sourceMethod,
Object[] params)
- Overrides:
entering
in class Logger
exiting
public void exiting(String sourceClass,
String sourceMethod)
- Overrides:
exiting
in class Logger
exiting
public void exiting(String sourceClass,
String sourceMethod,
Object result)
- Overrides:
exiting
in class Logger
throwing
public void throwing(String sourceClass,
String sourceMethod,
Throwable thrown)
- Overrides:
throwing
in class Logger
severe
public void severe(String msg)
- Overrides:
severe
in class Logger
warning
public void warning(String msg)
- Overrides:
warning
in class Logger
info
public void info(String msg)
- Overrides:
info
in class Logger
config
public void config(String msg)
- Overrides:
config
in class Logger
fine
public void fine(String msg)
- Overrides:
fine
in class Logger
finer
public void finer(String msg)
- Overrides:
finer
in class Logger
finest
public void finest(String msg)
- Overrides:
finest
in class Logger
setLevel
public void setLevel(Level newLevel)
throws SecurityException
- Overrides:
setLevel
in class Logger
- Throws:
SecurityException
getLevel
public abstract Level getLevel()
- Overrides:
getLevel
in class Logger
isLoggable
public boolean isLoggable(Level level)
- Overrides:
isLoggable
in class Logger
addHandler
public void addHandler(Handler handler)
throws SecurityException
- Overrides:
addHandler
in class Logger
- Throws:
SecurityException
removeHandler
public void removeHandler(Handler handler)
throws SecurityException
- Overrides:
removeHandler
in class Logger
- Throws:
SecurityException
getHandlers
public Handler[] getHandlers()
- Overrides:
getHandlers
in class Logger
setUseParentHandlers
public void setUseParentHandlers(boolean useParentHandlers)
- Overrides:
setUseParentHandlers
in class Logger
getUseParentHandlers
public boolean getUseParentHandlers()
- Overrides:
getUseParentHandlers
in class Logger
getParent
public Logger getParent()
- Overrides:
getParent
in class Logger
setParent
public void setParent(Logger parent)
- Overrides:
setParent
in class Logger
doLog
protected void doLog(LogRecord lr)
doLog
protected void doLog(LogRecord lr,
String rbname)
internalLog
protected void internalLog(LogRecord record)
internalLogFormatted
protected abstract void internalLogFormatted(String msg,
LogRecord record)
formatMessage
protected String formatMessage(LogRecord record)
Apache CXF