AnybillLogger class
The logger class for the application. Use this class to log messages across the application. Furthermore, it sends the logs to the datadog server when the release mode is active.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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
-
debug(
{String? message, StackTrace? stacktrace, String? library, String? event}) → void -
Log the given
event
as an error with the debug level. Basically use this instead of print() for debugging purposes. Only logs when the release mode is not active. -
error(
{dynamic error, StackTrace? stacktrace, required String library, required String event}) → void -
Log the given
event
as an error with the highest severity level -
info(
String message, {StackTrace? stacktrace, String? library, String? event}) → void -
Log the given
event
with a specific message. Logs the message as an INFO level in Datadog. Fallbacks to debug call if not in release mode. -
init(
) → Future< void> - Initialize the error logger to the main thread
-
onNetworkError(
{required ResponseError responseError, required String library, required String event, StackTrace? stacktrace}) → void -
Used to catch certain
ResponseError
types that can happen during a network stream (i.e. for BLoCs). Will automatically determine the error level and deploy the message to the correct channel. -
warning(
{dynamic error, StackTrace? stacktrace, required String library, required String event}) → void -
Log the given
event
as an error with a warning level