|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iparelan.util.logging.impl.LoggerImpl
@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.") public final class LoggerImpl
A Java
Logging API Logger
implementation.
Field Summary | |
---|---|
(package private) Logger |
delegate
|
private static ConcurrentMap<String,Logger> |
loggerCache
|
Constructor Summary | |
---|---|
private |
LoggerImpl(String name)
|
Method Summary | |
---|---|
void |
config(String msg)
Logs a message at the config level. |
void |
config(String msg,
Throwable throwable)
Logs a message at the config level. |
void |
fine(String msg)
Logs a message at the fine level. |
void |
fine(String msg,
Throwable throwable)
Logs a message at the fine level. |
void |
finer(String msg)
Logs a message at the finer level. |
void |
finer(String msg,
Throwable throwable)
Logs a message at the finer level. |
void |
finest(String msg)
Logs a message at the finest level. |
void |
finest(String msg,
Throwable throwable)
Logs a message at the finest level. |
static Logger |
getLogger(String name)
|
void |
info(String msg)
Logs a message at the info level. |
void |
info(String msg,
Throwable throwable)
Logs a message at the info level. |
boolean |
isLoggableConfig()
Tells whether messages at the config level will be logged. |
boolean |
isLoggableFine()
Tells whether messages at the fine level will be logged. |
boolean |
isLoggableFiner()
Tells whether messages at the finer level will be logged. |
boolean |
isLoggableFinest()
Tells whether messages at the finest level will be logged. |
boolean |
isLoggableInfo()
Tells whether messages at the info level will be logged. |
boolean |
isLoggableSevere()
Tells whether messages at the severe level will be logged. |
boolean |
isLoggableWarning()
Tells whether messages at the warning level will be logged. |
void |
severe(String msg)
Logs a message at the severe level. |
void |
severe(String msg,
Throwable throwable)
Logs a message at the severe level. |
void |
warning(String msg)
Logs a message at the warning level. |
void |
warning(String msg,
Throwable throwable)
Logs a message at the warning level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final ConcurrentMap<String,Logger> loggerCache
final Logger delegate
Constructor Detail |
---|
private LoggerImpl(String name)
Method Detail |
---|
public static Logger getLogger(String name)
public void config(String msg)
Logger
config
in interface Logger
msg
- The log message. May not be null
.public void config(String msg, Throwable throwable)
Logger
config
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void fine(String msg)
Logger
fine
in interface Logger
msg
- The log message. May not be null
.public void fine(String msg, Throwable throwable)
Logger
fine
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void finer(String msg)
Logger
finer
in interface Logger
msg
- The log message. May not be null
.public void finer(String msg, Throwable throwable)
Logger
finer
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void finest(String msg)
Logger
finest
in interface Logger
msg
- The log message. May not be null
.public void finest(String msg, Throwable throwable)
Logger
finest
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void info(String msg)
Logger
info
in interface Logger
msg
- The log message. May not be null
.public void info(String msg, Throwable throwable)
Logger
info
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void severe(String msg)
Logger
severe
in interface Logger
msg
- The log message. May not be null
.public void severe(String msg, Throwable throwable)
Logger
severe
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public void warning(String msg)
Logger
warning
in interface Logger
msg
- The log message. May not be null
.public void warning(String msg, Throwable throwable)
Logger
warning
in interface Logger
msg
- The log message. May not be null
.throwable
- The throwable associated with the log message. May not be null
.public boolean isLoggableConfig()
Logger
isLoggableConfig
in interface Logger
true
if messages will be logged at the config level,
otherwise false
.public boolean isLoggableFine()
Logger
isLoggableFine
in interface Logger
true
if messages will be logged at the fine level,
otherwise false
.public boolean isLoggableFiner()
Logger
isLoggableFiner
in interface Logger
true
if messages will be logged at the finer level,
otherwise false
.public boolean isLoggableFinest()
Logger
isLoggableFinest
in interface Logger
true
if messages will be logged at the finest level,
otherwise false
.public boolean isLoggableInfo()
Logger
isLoggableInfo
in interface Logger
true
if messages will be logged at the info level,
otherwise false
.public boolean isLoggableSevere()
Logger
isLoggableSevere
in interface Logger
true
if messages will be logged at the severe level,
otherwise false
.public boolean isLoggableWarning()
Logger
isLoggableWarning
in interface Logger
true
if messages will be logged at the warning level,
otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |