ErrorLogs extension

An extension on Object to add logging methods for convenience.

on

Methods

logError(String? text, {String? error, StackTrace? stackTrace, String? name}) → void

Available on Object, provided by the ErrorLogs extension

Logs an error with the specified error, text, stackTrace, and fileName.
logMessage({String? text, String? name}) → void

Available on Object, provided by the ErrorLogs extension

Logs a message with the specified text and fileName.
logSuccess(String? text, {String? fileName}) → void

Available on Object, provided by the ErrorLogs extension

Logs a success message with the specified text and fileName.
logWarning(String? text, {String? error, StackTrace? stackTrace, String? name}) → void

Available on Object, provided by the ErrorLogs extension

Logs a warning with the specified error, text, stackTrace, and fileName.