-
Notifications
You must be signed in to change notification settings - Fork 0
/
LogMessage.ts
26 lines (25 loc) · 941 Bytes
/
LogMessage.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** @module log */
import { ErrorDescription } from 'pip-services-commons-node';
/**
* Data object to store captured log messages.
* This object is used by [[CachedLogger]].
*/
export class LogMessage {
/** The time then message was generated */
public time: Date;
/** The source (context name) */
public source: string;
/** This log level */
public level: string;
/** The transaction id to trace execution through call chain. */
public correlation_id: string;
/**
* The description of the captured error
*
* [[https://rawgit.com/pip-services-node/pip-services-commons-node/master/doc/api/classes/errors.errordescription.html ErrorDescription]]
* [[https://rawgit.com/pip-services-node/pip-services-commons-node/master/doc/api/classes/errors.applicationexception.html ApplicationException]]
*/
public error: ErrorDescription;
/** The human-readable message */
public message: string;
}