Skip to content

Write Log

Zoran Jankov edited this page Jul 23, 2020 · 1 revision

Description

Creates a log entry with timestamp and message passed thru a parameter $Message or thru pipeline, and saves the log entry to log file, to report log file, and writes the same entry to console. $Configuration parameter contains path to Configuration.inf file in witch paths to report log and permanent log file are contained, and option to turn on or off whether a report log, permanent log and console write should be written. This function can be called to write a log separator, and this entries do not have a timestamp. Format of the timestamp is "yyyy.MM.dd. HH:mm:ss:fff" and this function adds " - " after timestamp and before the main message.

Clone this wiki locally