An interface that represents a message object to be logged by Logger. An example of Mosaic implementation:

import { Logger } from '@axinom/mosaic-service-common';
//...
const logger = new Logger();
logger.error({ message: "An error has occurred.", context: 'error-context' })

Hierarchy

  • LogMessage

Properties

context?: string
details?: Dict<unknown>
environmentInfo?: {
    environmentId: string;
    tenantId: string;
}

Type declaration

  • environmentId: string
  • tenantId: string
logtime?: string | Date
message?: string
retention?: LogRetention

Generated using TypeDoc