FCF 2.0 development in progress...
> > > >
[News] [JS Packages API] [JS Downloads] [Donate to the project] [Contacts]

fcf.Logger class

Type:
class fcf.Logger

Base class: fcf.EventEmitter

Package: fcf-framework-core

File: fcf.js

Available from version: 2.0.2

Logger class with file recording

Static constants
TST = 0
- Test level logging
CRH = 10
- Crash level logging
ERR = 20
- Error level logging
WRN = 30
- Warning level logging
INF = 40
- Info level logging
LOG = 50
- Default level logging
DBG = 60
- Debug level logging
TRC = 70
- Trace level logging
Events dispatched from the fcf.EventEmitter base class
message_after - Message logging event. Called after output
message_before - Message logging event. Called before output and call of logger handlers
Methods
constructor(object|fcf.Configuration a_configuration)
- Class constructor
fcf.Configuration getConfiguration()
- Returns a configuration object
fcf.Actions tst(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "test".
fcf.Actions crh(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "crash".
fcf.Actions err(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "error".
fcf.Actions wrn(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "warning".
fcf.Actions log(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "log".
fcf.Actions inf(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "info".
fcf.Actions dbg(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "debug".
fcf.Actions trc(string a_module, mixed a_arg1, mixed a_arg2, ...)
- Outputs a message to the log. Logging level "trace".