|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.log.LogAndSourceImpl
public final class LogAndSourceImpl
Field Summary |
---|
Fields inherited from interface railo.commons.io.log.Log |
---|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN |
Constructor Summary | |
---|---|
LogAndSourceImpl(Log log,
String source)
|
Method Summary | |
---|---|
void |
debug(String application,
String message)
log level debug |
void |
error(String application,
String message)
log level error |
void |
fatal(String application,
String message)
log level fatal |
Log |
getLog()
|
int |
getLogLevel()
|
String |
getSource()
|
void |
info(String application,
String message)
log level info |
void |
log(int level,
String application,
String message)
log one line |
void |
setLogLevel(int level)
|
String |
toString()
|
void |
warn(String application,
String message)
log level warn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogAndSourceImpl(Log log, String source)
log
- source
- Method Detail |
---|
public void log(int level, String application, String message)
Log
log
in interface Log
level
- level to log (Log.LEVEL_DEBUG, Log.LEVEL_WARN, Log.LEVEL_ERROR)application
- application namemessage
- message to logpublic void info(String application, String message)
Log
info
in interface Log
application
- application namemessage
- message to logpublic void debug(String application, String message)
Log
debug
in interface Log
application
- application namemessage
- message to logpublic void warn(String application, String message)
Log
warn
in interface Log
application
- application namemessage
- message to logpublic void error(String application, String message)
Log
error
in interface Log
application
- application namemessage
- message to logpublic void fatal(String application, String message)
Log
fatal
in interface Log
application
- application namemessage
- message to logpublic Log getLog()
getLog
in interface LogAndSource
public String getSource()
getSource
in interface LogAndSource
public int getLogLevel()
getLogLevel
in interface Log
public void setLogLevel(int level)
setLogLevel
in interface Log
level
- sets the log level of the logpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |