|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Logger
Logger class logs messages to a text file..
The config.xml file defines the logger tag:
<logger>
<file-name>${root}/WEB-INF/logs/application.log</file-name>
<max-size>512</max-size>
<generations>3</generations>
<log-level>FILTER_INFO</log-level>
</logger>
application.log
application.log.1
application.log.2
application.log.3 - the oldest
Example of log entry: [2007/03/06 02:25:31] {I} TRAN ID - 1173147931231-1 {I} Info message goes here
| Field Summary | |
<static> Object |
FILTER_ERROR
Logs errors |
<static> Object |
FILTER_INFO
Logs info messages |
<static> Object |
FILTER_NONE
Logs nothing |
<static> Object |
FILTER_WARNING
Logs warnings |
| Constructor Summary | |
Logger(<Config> config)
Constructs a Logger object. |
|
| Method Summary | |
String
|
error(<Object> err)
Logs error message. |
String
|
info(<String> msg)
Logs information level message. |
String
|
warning(<Object> err)
Logs warning message. |
| Field Detail |
<static> Object FILTER_ERROR
<static> Object FILTER_INFO
<static> Object FILTER_NONE
<static> Object FILTER_WARNING
| Constructor Detail |
Logger(<Config> config)
config - The instance of Config class.
| Method Detail |
String error(<Object> err)
err - The err object to log
String info(<String> msg)
msg - The message to log
String warning(<Object> err)
err - The err object to log
|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |