Methods
(inner) Initializes and returns a writer function for a logger(processID, definitionId, loggerInitializedPromise)
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | ID of the process that the logger is being made for. |
definitionId |
string | name of the file the process the logger is being made for is stored in |
loggerInitializedPromise |
promise | a promise indicating that the logger has finished being asynchronously initialized |
Returns:
a writer function
(async, inner) splitWriter(msg, level)
Saves a log in a process specific table.
Parameters:
Name | Type | Description |
---|---|---|
msg |
object | the log to be saved |
level |
string | the log-level of the message. compared to the minimum log level specified in the config file. If it is equal or greater to the one in the config, the log is saved |
(async, inner) standardWriter(msg, level)
Saves a log if the minimum log level is met
Parameters:
Name | Type | Description |
---|---|---|
msg |
object | log to be saved |
level |
string | the log-level of the message. compared to the minimum log level specified in the config file. If it is equal or greater to the one in the config, the log is saved |