browser-sdk

Home > @datadog/browser-logs > LogsEvent

LogsEvent interface

Signature:

export interface LogsEvent 

Properties

Property Modifiers Type Description
application_id? string (Optional) UUID of the application
date number Start of the log in ms from epoch
error? { kind?: string; stack?: string; fingerprint?: string; message?: string; causes?: Array<{ message: string; source: string; type?: string; stack?: string; }>; [k: string]: unknown; } (Optional) Error properties
http? { method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH'; status_code: number; url: string; [k: string]: unknown; } (Optional) Resource properties of the error
logger? { name: string; [k: string]: unknown; } (Optional) Logger properties
message string The log message
origin 'network' | 'source' | 'console' | 'logger' | 'agent' | 'report' Origin of the log
service? string (Optional) The service name
session_id? string (Optional) UUID of the session (deprecated in favor of session.id)
session? { id?: string; [k: string]: unknown; } (Optional) Session properties
status 'ok' | 'debug' | 'info' | 'notice' | 'warn' | 'error' | 'critical' | 'alert' | 'emerg' The log status
view { referrer?: string; url: string; id?: string; [k: string]: unknown; } View properties