This server-side class allows operations with log archives.
This method allows removing unpacked outdated logs that are over one month old.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
sysLogArchiveId | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
const logArchive = new SimpleLogArchive(); logArchive.removeUnpacked('161478566913431857'); |
This method packs outdated logs into an archive. Logs that are over one month old are considered outdated.
Return:
Type | String |
---|---|
Void | This method does not return a value. |
Example:
const logArchive = new SimpleLogArchive(); logArchive.runPacking(); |
This method removes outdated logs from the log archive. Logs that are over one month old are considered outdated.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
sysLogArchiveId | String | Y | N |
Return:
Type | String |
---|---|
Void | This method does not return a value. |
Example:
const logArchive = new SimpleLogArchive(); logArchive.runUnpacking('161478566913431857'); |