Aller au contenu principal

@log-right/base > ReportConfigBase

ReportConfigBase interface​

Report configuration parameters to be applied to a specific event type

Signature:
export interface ReportConfigBase<TFormat extends FormatFunctionBase = FormatFunctionBase, TCapture extends CaptureFunctionBase = CaptureFunctionBase> extends EventConfig 
Extends: [EventConfig](/log-right/fr/docs/base.eventconfig)

Properties​

PropertyTypeDescription
captureTCaptureThe default function that will be used to capture the Report. Can be overridden by the user to apply custom logging. The default functionality will try to write the Report to the console.
formatTFormatThe default function that will be used to format the Report. Can be overridden by the user to apply custom formatting. The default functionality will try to use the template and Result object and into a Report string.
isIncludingStackbooleanAn indicator specifying if a stack trace should be included in the Report
locale?Locale | null(Optional) The locale object to use when formatting the timestamp
messagePostfix?string | null(Optional) A postfix string to append to the end of all Report messages
messagePrefix?string | null(Optional) A prefix string to prepend to the start of all Report messages
template?string(Optional) A string specifying the report template to use when formatting the Report for this event type
templateFieldStartstringThe string used to mark the beginning of a field token in a Report template string
templateFieldStopstringThe string used to mark the end of a field token in a Report template string
timestampFormatstringA string used to format the timestamp value appended to the Report event