Log class

A simple flutter debug log that only prints in debug mode Now with optional emojis and colors!

Constructors

Log()

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 Properties

isEnabled bool
no setter

Static Methods

configure({bool? emojis, bool? colors, bool? timestamp, bool? logLevel}) → void
Configure all visual options at once
d(dynamic message, [String? tag]) → void
Debug level logging
disable() → void
e(dynamic message, [String? tag, Object? error, StackTrace? stackTrace]) → void
Error level logging
enable() → void
i(dynamic message, [String? tag]) → void
Info level logging
json(dynamic jsonObject, [String? tag]) → void
JSON pretty print with enhanced styling
long(dynamic message, [String? tag]) → void
Long message logging - splits long messages into chunks
print(dynamic message) → void
Simple debug print - only works in debug mode
setColors(bool enabled) → void
Enable/disable colors in logs (independent of emojis)
setEmojis(bool enabled) → void
Enable/disable emojis in logs (independent of colors)
setLogLevel(bool enabled) → void
Enable/disable log level labels
setTimestamp(bool enabled) → void
Enable/disable timestamps in logs
trace([String? message, String? tag]) → void
Enhanced trace with better formatting
v(dynamic message, [String? tag]) → void
Verbose level logging - most detailed
w(dynamic message, [String? tag]) → void
Warning level logging
wtf(dynamic message, [String? tag]) → void
WTF (What a Terrible Failure) level logging - for critical failures