DnaLine class

Constructors

DnaLine({required String timestamp, required String line, required String level, required String env, String? app, Map<String, dynamic>? meta})
DnaLine.fromJson(Map<String, dynamic> json)
factory

Properties

app String?
App name
getter/setter pair
env String
the current environment of the application.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level String
Log level (E.g. Debug, Info, Error)
getter/setter pair
line String
Log statement
getter/setter pair
meta Map<String, dynamic>?
Meta is a field reserved for custom information associated with a log line. To add metadata to an API call, specify the meta field under the lines object. Metadata can be viewed inside that line's context. WARNING: If inconsistent value types are used, that line's metadata, will not be parsed. For example, if a line is passed with a meta object, such as meta.myfield of type String, any subsequent lines with meta.myfield must have a String as the value type for meta.myfield. Source: LogDNA official documentation.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp String
Timestamp for the log line
getter/setter pair

Methods

addCustomField(CustomField customField) → dynamic
Add a custom field to a log line
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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