Log class
Pure logger class to facilitate logging.
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
-
analytic(
{required String name, String? value, bool addToCrashReports = true, String? location, Map< String, Object?> ? parameters, String? tag}) → void -
Logs an analytic
name
with LogLevel.analytic as debugPrint. -
debug(
String message, {bool addToCrashReports = true, String? location, String? tag}) → void -
Logs a debug
message
with LogLevel.debug as debugPrint. -
error(
String message, {String? location, Object? error, StackTrace? stackTrace, bool fatal = false, bool printStack = true, bool addToCrashReports = true, bool forceRecordError = false, String? tag}) → void -
Logs an error
message
with LogLevel.error as debugPrint. -
fatal(
String message, {String? location, Object? error, StackTrace? stackTrace, bool printStack = true, bool addToCrashReports = true, bool forceRecordError = false, String? tag}) → void -
Logs a fatal
message
with LogLevel.fatal as debugPrint. -
info(
String message, {bool addToCrashReports = true, String? location, String? tag}) → void -
Logs an info
message
with LogLevel.info default as debugPrint. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trace(
String message, {bool addToCrashReports = true, String? location, String? tag}) → void -
Logs a trace
message
with LogLevel.trace default as debugPrint. -
warning(
String message, {bool addToCrashReports = true, String? location, String? tag}) → void -
Logs a warning
message
with LogLevel.warning as debugPrint.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
analyticsObserver
→ StreamController<
String> -
Used to expose all analytics logs.
final
- broadcastLogs ↔ bool
-
Used to toggle broadcasting logs on or off.
getter/setter pair
-
crashReportsObserver
→ StreamController<
String> -
Used to expose all crash reports logs.
final
- level ↔ LogLevel
-
Used to set the log level of the Loglytics.
getter/setter pair
- logTime ↔ bool
-
Used to toggle logging of time on or off.
getter/setter pair