DVLog class final
What DV.log is.
- Available extensions
Constructors
- DVLog()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
recent
→ List<
DVLogRecord> -
The records this process still holds in memory, oldest first.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
String message, {DVLogLevel level = DVLogLevel.info, String? tag, Map< String, Object?> context = const <String, Object?>{}, String? code, Object? error, StackTrace? stackTrace}) → void -
Writes one record at
level. -
clear(
) → Future< void> - Removes every kept record, on disk and in memory.
-
debug(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}}) → void -
error(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}, Object? error, StackTrace? stackTrace, String? code}) → void -
export(
) → Future< String> - Everything kept, oldest first, one JSON object per line: the device's log file when there is one, otherwise the in-memory records. What a person sends when they are asked for the logs.
-
fatal(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}, Object? error, StackTrace? stackTrace, String? code}) → void -
info(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
Available on DVLog, provided by the DVLogShare extension
Opens the platform's share sheet with the newest records that fit inmaxBytes, one JSON object per line. -
toString(
) → String -
A string representation of this object.
inherited
-
trace(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}}) → void -
warn(
String message, {String? tag, Map< String, Object?> context = const <String, Object?>{}, Object? error, StackTrace? stackTrace, String? code}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited