Logger Memory
LoggerInterface
LoggerMemory ⇐ Implements a default logger. It will store all the logEntries in Memory. if 'writeConsole' is set to true, it will also output the logs to the console. This logger is mainly used for debugging and development.
Kind: global class
Extends: LoggerInterface
- LoggerMemory ⇐
LoggerInterface
loggerMemory.writeConsole
{boolean} Defines if the log entry should also be loged to the console. Default is not to write to console
Kind: instance property of LoggerMemory
loggerMemory.clear()
Clears all the existing log entries
Kind: instance method of LoggerMemory
loggerMemory._writeLog(level, entry)
Writes the log, or do what ever. At this point in time the logs with the wrong level arte already filtered
Kind: instance method of LoggerMemory
Param | Type | Description | |
---|---|---|---|
level | string | The log level of the current entry | |
entry | string \ | object | The data to log |