Classes
Methods
clearProcessLogs(processID)
Sets the currentLogs variable in the logging_meta_data for a given process to 0
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | the process for which the operation is to be performed |
clearProcessTables(processID)
Sets the tables variable in the logging_meta_data for a given process to 0
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | the process for which the operation is to be performed |
(async) clearStandardLogs()
Sets the standardLogs variable in the logging_meta_data to 0 and move monitoring to monitoring_old
decreaseProcessTables(processID, number)
Descreases the tables counter in the logging_meta_data by a given number
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | the process for which the operation is to be performed |
number |
number | the number by which the tables counter is to be decreased |
deleteLoggingTable(name)
Deletes a logging table with a specific name
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the table that is to be deleted. |
Requires:
- module:{module:@proceed/system.Data}
(async) getInstanceLogs(processId, instanceId, limit)
Parameters:
Name | Type | Description |
---|---|---|
processId |
string | The ID of the process |
instanceId |
string | the ID of the specific instance of the process for which the logs are to be returned |
limit |
number | how many logs we want to get |
getLogger(confObject)
Factory method creating a logger
Parameters:
Name | Type | Description |
---|---|---|
confObject |
object | An object containing all configuration parameters for the logger |
Returns:
a logger
(async) getProcessLogTables(processID, limit)
Returns all process logs across all tables
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | The ID of the process for which the logs are to be returned |
limit |
number | how many logs we want to get |
(async) getStandardLogTables(limit) → {object}
Returns the last [limit] standard logs
Parameters:
Name | Type | Default | Description |
---|---|---|---|
limit |
number | 100 | how many logs we want to get |
Returns:
standard logs
- Type
- object
init()
Initializes all things necessary for the Logging
- Provides the data module to the rotation utils
- Creates the config data file if it doesn't exist
- starts the log rotation