bdlogging library

Classes

AesGcmEncryptionOptions
Configuration options for AesGcmSensitiveDataEncryptor.
AesGcmSensitiveDataEncryptor
AES-GCM based sensitive data encryptor.
BDCleanableLogHandler
A BDLogHandler that contains resources that should be cleared.
BDLogError
A class that represent an error that occurred during logging.
BDLogFormatter
BDLogRecord Formatter.
BDLogger
BDLogger is a singleton class used for logging in Dart/Flutter applications.
BDLogHandler
BDLogHandler handler.
BDLogRecord
Logging record.
ConsoleLogHandler
A implementation of BDLogHandler that print BDLogRecord to the console. This class is responsible for handling log records and printing them to the console.
DefaultLogFormatter
Default implementation of a BDLogFormatter.
EncryptedIsolateFileLogHandler
Isolate file log handler that encrypts sensitive substrings inside BDLogRecord.message before persisting to disk.
EncryptedIsolateFileLogHandlerOptions
Options for configuring EncryptedIsolateFileLogHandler.
EncryptedLogFileOptions
Options for log file handling in encrypted handlers.
FileLogHandler
FileLogHandler is a class that extends BDCleanableLogHandler. It is designed to handle logging records BDLogRecord by writing them to files.
IsolateFileLogHandler
A implementation of BDCleanableLogHandler that write BDLogRecord to files in a different isolate.
MarkerFallbackHandler
Handler that returns a configurable marker string on encryption failure.
PlaintextFallbackHandler
Default handler that returns the original plaintext on encryption failure.
RedactFallbackHandler
Handler that redacts sensitive data on encryption failure.
RegexSensitiveDataMatcher
Default matcher that detects passwords, tokens, emails, and phone numbers.
SensitiveDataEncryptor
Encrypts and decrypts sensitive strings.
SensitiveDataMatcher
Finds sensitive ranges inside a message.
SensitiveMatch
Represents a sensitive substring within a message.
SensitivePattern
A regex pattern with an optional capture group.

Enums

BDLevel
An Logging Level of importance of a log message.

Mixins

EncryptionFailureHandler
Handles encryption failures by returning a replacement string.

Constants

cleanCompletedMessage → const String
Message sent when cleanup is completed. Exposed for testing purposes.

Typedefs

LinePrinter = void Function(String line)
A Function that print the line.
LogFunction = void Function(String message, {Object? error, StackTrace? stackTrace})
Function signature for logging operations. Used for dependency injection to enable testing.