|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.provider.log.NullLogProvider
LogProvider implementation that does not log any messages anywhere. Can be used for efficiency, although DefaultLogProvider is recommended.
LogProvider,
Logger| Field Summary |
| Fields inherited from interface com.opensymphony.provider.LogProvider |
DEBUG, ERROR, FATAL, INFO, WARN |
| Constructor Summary | |
NullLogProvider()
|
|
| Method Summary | |
void |
destroy()
Shutdown Provider. |
Object |
getContext(String name)
Get object representing context of logger. |
void |
init()
Startup Provider. |
boolean |
isEnabled(Object context,
int level)
Check whether logging is enabled for particular context/level combination. |
void |
log(Object context,
int level,
Object msg,
Throwable throwable)
Log a message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NullLogProvider()
| Method Detail |
public Object getContext(String name)
LogProvider
getContext in interface LogProvider
public boolean isEnabled(Object context,
int level)
LogProvider
isEnabled in interface LogProviderpublic void destroy()
Provider
destroy in interface Provider
public void init()
throws ProviderConfigurationException
Provider
init in interface ProviderProviderConfigurationException - thrown if error in startup
or configuration.
public void log(Object context,
int level,
Object msg,
Throwable throwable)
LogProvider
log in interface LogProvider
|
OSCore Project Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||