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

fcf.Logger class

Base class: fcf.EventEmitter

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Logger class with file recording

Static constants
fcf.Logger.TST = 0 - Test level logging
fcf.Logger.CRH = 10 - Crash level logging
fcf.Logger.ERR = 20 - Error level logging
fcf.Logger.WRN = 30 - Warning level logging
fcf.Logger.INF = 40 - Info level logging
fcf.Logger.LOG = 50 - Default level logging
fcf.Logger.DBG = 60 - Debug level logging
fcf.Logger.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".