archiveLogs


Purpose

Saves logs from given period to a text file, accessible by means of the Filesystem API.

Log entries in the text file are separated using the "||\n" combination.

Signature

archiveLogs(dateFrom, dateTo, callback)

Parameters

Name Description Type Use
dateFrom An opening date of the time period. date required
dateTo A closing date of the time period. date required
callback

A callback function to pass the {filePath, error} object, where:

  • An address of a log archive file is undefined if the archivization process fails.

  • An error code is undefined if the archivization process succeeds.

function required

Related topics

Logger
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...