InsightOpsLogger class

Creates logger handler for sending messages to insightOps.

url is an insightOps webhook URL defined for your log.

You can optionally pass transformBody parameter that will be called with each request and can be used to change the body. By default, it just returns the original structure.

post parameter does the real HTTP POST request to a server, and is intended mainly for testing.

Constructors

InsightOpsLogger(Uri url, {BodyTransformer transformBody = _noTransform, PostHandler post = http.post})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
URL to send log data to. See setup instruction on how to get this URL.
final

Methods

call(LogRecord record) → void
dispose() Future<void>
Call this method when this logger is no longer needed.
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