generic_logger library
Classes
- CloudLoggerAdapter
- Blueprint for adapters that persist logs to cloud databases such as Firebase.
- ConsoleAdapterConfig
- Configuration for the console adapter.
- ConsoleLoggerAdapter
- Simple console adapter that logs to stdout.
- DefaultSanitizer
- Default sanitizer that redacts common sensitive keys.
- EnhancedLogOptions
- Combined options for log calls.
- FileAdapterConfig
- Configuration for the file adapter.
- FileLoggerAdapter
- Persists logs to disk. Supports text and JSON formats.
- HttpLoggerAdapter
- Blueprint for adapters that stream logs over HTTP.
- LogContext
- Rich log context passed to adapters.
- LogContextBuilder
- Fluent builder to compose log context consistently.
- Logger
- Convenience wrapper that exposes level helpers.
- LoggerAdapter
- Abstract contract for all logging adapters.
- LoggerAdapterConfig
- Base configuration for any adapter.
- LoggerContext
- Optional context metadata about the log origin.
- LoggerRepository
- Singleton facade that manages adapters and orchestrates logging.
- LoggerRepositoryConfig
- Repository-wide configuration.
- Sanitizer
- Base contract for sanitizers.
- SanitizerOptions
- Options used to sanitize log payloads.
- SanitizerRegistry
- Registry that stores sanitizers by tag.
- ScopedLogger
- Wraps a logger with predefined context (e.g., tag or metadata).
Enums
- FileLogFormat
- File log formats supported by the file adapter.
- LoggerEnvironment
- Environment the logger is running in.
- LogLevel
- Supported log severity levels.