@dvelop-sdk
    Preparing search index...

    Interface DvelopLogEvent

    Several options for a log statement, that can be used by logging providers.

    interface DvelopLogEvent {
        customAttributes?: {
            [key: string]: string | number | boolean | object | null;
        };
        dbRequest?: DbRequest;
        error?: Error;
        httpIncomingRequest?: IncomingHttpRequest;
        httpIncomingResponse?: HttpResponse;
        httpOutgoingRequest?: OutgoingHttpRequest;
        httpOutgoingResponse?: HttpResponse;
        invisible?: boolean;
        message?: string
        | object;
        name?: string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    customAttributes?: { [key: string]: string | number | boolean | object | null }

    Set custom attributes that can be used by a logging provider.

    dbRequest?: DbRequest

    Database request.

    error?: Error

    An error.

    httpIncomingRequest?: IncomingHttpRequest

    Incoming http request.

    httpIncomingResponse?: HttpResponse

    Response of an incoming http request.

    httpOutgoingRequest?: OutgoingHttpRequest

    Outgoing http request.

    httpOutgoingResponse?: HttpResponse

    Response of an outgoing http request.

    invisible?: boolean

    Specifies if the the logstatement is visible for tenant owner / customer.

    message?: string | object

    A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. Can vary for each occurrence of the event coming from the same source.

    name?: string

    Short event identifier that does not contain varying parts. Name describes what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 characters. Not guaranteed to be unique in any way. Typically used for filtering and grouping purposes in backends.
    Can be used to identify domain events like FeaturesRequested or UserLoggedIn (cf. example).