log library Null safety

Classes

Heartbeat
LogEntry
Logger
Use a Logger to log debug messages.
LogLevel
LogLevels to control logging output. Logging can be enabled to include all levels above certain LogLevel. LogLevels are ordered using an integer value LogLevel.value. The predefined LogLevel constants below are sorted as follows (in descending order): LogLevel.SHOUT, LogLevel.SEVERE, LogLevel.WARNING, LogLevel.INFO, LogLevel.CONFIG, LogLevel.FINE, LogLevel.FINER, LogLevel.FINEST, and LogLevel.ALL.
Stopwatch

Mixins

Log

Properties

manualNow DateTime?
Used for testing.
read / write
now DateTime
read-only
nowMicrosecondsSinceEpoch int
read-only
processCurrentRssInMB double
read-only
processMaxRssInMB double
read-only

Functions

logCurrentProcessInformation(Logger logger, LogLevel logLevel) → void
logEnvironmentInformation(Logger logger, LogLevel logLevel) → void
logUnsuccessfulProcessResult(ProcessResult result, Log _log) → void
prettyDuration(Duration duration) String
Returns the given duration in a pretty format. Examples: