|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.log.LogDataSource
public final class LogDataSource
Datasource output logger TODO impl
Field Summary |
---|
Fields inherited from interface railo.commons.io.log.Log |
---|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN |
Constructor Summary | |
---|---|
LogDataSource(PageContext pc,
int logLevel,
ConfigImpl config,
DataSource datasource,
String username,
String password,
String table)
Constructor of the class |
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 |
int |
getLogLevel()
|
void |
info(String application,
String message)
log level info |
void |
log(int level,
String application,
String message)
log one line |
void |
setLogLevel(int level)
|
void |
warn(String application,
String message)
log level warn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogDataSource(PageContext pc, int logLevel, ConfigImpl config, DataSource datasource, String username, String password, String table)
config
- datasource
- username
- password
- table
-
PageException
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 int getLogLevel()
getLogLevel
in interface Log
public void setLogLevel(int level)
setLogLevel
in interface Log
level
- sets the log level of the logpublic void debug(String application, String message)
Log
debug
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 void info(String application, String message)
Log
info
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 log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |