DatadogLoggerConfiguration class

Configuration options for a Datadog Log. These options are set for an individual DatadogLogger object

Constructors

DatadogLoggerConfiguration({String? service, String? name, LogLevel remoteLogThreshold = LogLevel.debug, bool bundleWithRumEnabled = true, bool bundleWithTraceEnabled = true, bool networkInfoEnabled = true, double remoteSampleRate = 100, CustomConsoleLogFunction? customConsoleLogFunction = simpleConsolePrint})

Properties

bundleWithRumEnabled bool
Enables the logs integration with RUM.
getter/setter pair
bundleWithTraceEnabled bool
Enables the logs integration with active span API from Tracing.
getter/setter pair
customConsoleLogFunction CustomConsoleLogFunction?
Control what Datadog outputs to the debug console. Uses simpleConsolePrint by default, which prints logs all logs to the console in the form "level message".
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
Sets the name of the logger.
getter/setter pair
networkInfoEnabled bool
Enriches logs with network connection info. This means: reachability status, connection type, mobile carrier name and many more will be added to each log.
getter/setter pair
remoteLogThreshold LogLevel
Sets the level of logs that get sent to Datadog
getter/setter pair
remoteSampleRate double
The sampling rate for this logger.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service String?
The service name (default value is set to application bundle identifier)
getter/setter pair

Methods

encode() Map<String, Object?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited