TurboFirestoreLogger class

A logger for the TurboFirestoreApi that handles different log levels and sensitive data.

This class provides logging functionality with different severity levels:

  • Info: General information messages
  • Success: Successful operation messages
  • Warning: Warning messages that don't prevent operation
  • Error: Error messages with optional stack traces

Example:

class MyLogger extends TurboFirestoreLogger {
  const MyLogger() : super(
    turboLogLevel: TurboLogLevel.info,
    hideInProduction: true
  );
}

Constructors

TurboFirestoreLogger.new({Log? log, bool hideInProduction = true, bool showSensitiveData = true})
Creates a logger with customizable settings.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showSensitiveData bool
Whether to include sensitive data in log messages
final

Methods

debug({required String message, SensitiveData? sensitiveData}) → void
Logs an informational message.
error({Object? error, StackTrace? stackTrace, required SensitiveData? sensitiveData, required String message}) → void
Logs an error message with optional stack trace information.
info({required String message, SensitiveData? sensitiveData}) → void
Logs a success message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
warning({required String message, SensitiveData? sensitiveData}) → void
Logs a warning message.

Operators

operator ==(Object other) bool
The equality operator.
inherited