log library
The log of an app: log records a message, with its LogLevel, and a LogSink keeps what is recorded as LogRecords.
It is a library of its own because log is also a function of dart:math
and dart:developer: an app that imports either has no clash with
twk.dart, and one that logs imports this beside it.
Classes
- LogRecord
- One entry of a LogSink: when, how much it matters, the message, and the error and its stack where there are.
- LogSink
- The records of one app: the last capacity of them kept in a ring for listeners that come later (a console overlay), every one passed to the listeners as it comes and, with a path, appended to that file; while it serves, sent to the clients of its socket too.