new Logger(options, group)
the Logger class provides logging functions and other methods to log messages and profiling
Parameters:
Name | Type | Description |
---|---|---|
options |
Array.<module:base-logger~LoggerConfigurations> | the log configuration options array |
group |
string | the group that should be used for logging |
Extends
Methods
-
debug(args)
-
Creates a debug log
Parameters:
Name Type Argument Description args
* <repeatable>
the objects to be logged
- Inherited From:
- Source:
-
error(args)
-
Creates a error log
Parameters:
Name Type Argument Description args
* <repeatable>
the objects to be logged
- Inherited From:
- Source:
-
group(groupName)
-
Creates a new group from the existing logger group. The new Group will have a name
<<thisGroup>> / <<groupName>>
Parameters:
Name Type Description groupName
string the string to be prepended to the group name to create a new group
-
info(args)
-
Creates a informational log
Parameters:
Name Type Argument Description args
* <repeatable>
the objects to be logged
- Inherited From:
- Source:
-
profile(component, verbose)
-
Profiles all function in the object and logs the start and end of all calls to the functions, optionally logging arguments and return value.
Parameters:
Name Type Argument Description component
* the object whose functions have to be profiled
verbose
boolean <optional>
if true, the function arguments as well as the return value will be profiled
-
warn(args)
-
Creates a warning log
Parameters:
Name Type Argument Description args
* <repeatable>
the objects to be logged
- Inherited From:
- Source: