File

src/modules/logging/entities/log-message.entity.intf.ts

Description

Log message for Stark Application

Index

Properties

Properties

correlationId
correlationId: string
Type : string

The correlation id of the log message

error
error: StarkError
Type : StarkError
Optional

The error linked to the log message

message
message: string
Type : string

The log message

timestamp
timestamp: string
Type : string

The timestamp of the message

type
type: StarkLogMessageType
Type : StarkLogMessageType

The type of message (debug, warn, info,...)

import { StarkLogMessageType } from "./log-message-type.entity";
import { StarkError } from "../../../common/error";

/**
 * Log message for Stark Application
 */
export interface StarkLogMessage {
	/**
	 * The timestamp of the message
	 */
	timestamp: string;
	/**
	 * The log message
	 */
	message: string;
	/**
	 * The type of message (debug, warn, info,...)
	 */
	type: StarkLogMessageType;
	/**
	 * The correlation id of the log message
	 */
	correlationId: string;
	/**
	 * The error linked to the log message
	 */
	error?: StarkError;
}

results matching ""

    No results matching ""