CobaltDeveloperLogSink class final

Writes to dart:developer, which the SDK ships and every Dart tool reads.

The zero-dependency default: no package to add, output shows up in the IDE's debug console and in DevTools' logging view. Reach for an adapter when you want your app's own logger to own the records instead.

Implemented types

Constructors

CobaltDeveloperLogSink({String loggerName = 'cobalt'})
Logs under loggerName.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
loggerName → String
The name records are filed under.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(CobaltLogRecord record) → void
Writes record.
override

Operators

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