UNPKG

901 BTypeScriptView Raw
1/** @module log */
2import { ErrorDescription } from 'pip-services3-commons-node';
3/**
4 * Data object to store captured log messages.
5 * This object is used by [[CachedLogger]].
6 */
7export declare class LogMessage {
8 /** The time then message was generated */
9 time: Date;
10 /** The source (context name) */
11 source: string;
12 /** This log level */
13 level: string;
14 /** The transaction id to trace execution through call chain. */
15 correlation_id: string;
16 /**
17 * The description of the captured error
18 *
19 * [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.errordescription.html ErrorDescription]]
20 * [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.applicationexception.html ApplicationException]]
21 */
22 error: ErrorDescription;
23 /** The human-readable message */
24 message: string;
25}