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

err() method from fcf.Logger class

fcf.Actions err(string a_module, mixed a_arg1, mixed a_arg2, ...)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Outputs a message to the log. Logging level "error".

Arguments

string a_module
- The name of the module in which logging is performed

mixed a_arg1 ... a_argN
- Arguments output to the log
Result
fcf.Actions
- Delayed action object for logging operation completion

Example: Function application

fcf.log.err("Application", "Hello world!");

Output:

2023-04-18 02:34:34.593 [PID:12245] [ERR] [MOD:Application]: Hello world!