pip-services3-components-node
Version:
Component definitions for Pip.Services in Node.js
26 lines (25 loc) • 914 B
text/typescript
/** @module log */
import { ErrorDescription } from 'pip-services3-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://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.errordescription.html ErrorDescription]]
* [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.applicationexception.html ApplicationException]]
*/
public error: ErrorDescription;
/** The human-readable message */
public message: string;
}