Logger class
Debug-only logging for the failure points worth monitoring.
Every line starts with tag, so it can be filtered with
flutter logs | grep receive_whatsapp_chat. Nothing is printed in release.
Constructors
- Logger()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
error(
String message, [Object? error, StackTrace? stackTrace]) → void -
shape(
String line, [int maxLength = 60]) → String -
Masks a chat line so its format can be logged without its content:
letters become
a, digits become9, and the line is truncated. e.g.[25/04/2022, 10:17:07] Dolev: Hi->[99/99/9999, 99:99:99] aaaaa: aa -
warning(
String message) → void