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
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