Emit a log event.
This function was designed to map closely to the logging information collected by package:logging
.
message
is the log messagetime
(optional) is the timestampsequenceNumber
(optional) is a monotonically increasing sequence numberlevel
(optional) is the severity level (a value between 0 and 2000); see the package:logging
Level
class for an overview of the possible valuesname
(optional) is the name of the source of the log messagezone
(optional) the zone where the log was emittederror
(optional) an error object associated with this log eventstackTrace
(optional) a stack trace associated with this log eventexternal void log( String message, { DateTime time, int sequenceNumber, int level: 0, String name: '', Zone zone, Object error, StackTrace stackTrace, });
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-developer/log.html