logger library

Provides a logging framework with built-in strategies for console, Sentry, and other analytics integration.

This library is designed to facilitate easy and structured logging across different platforms and services, encapsulating complexity within pre-defined strategies. It's suitable for applications that need robust logging capabilities with minimal setup, including error tracking and performance monitoring.

Classes

ConsoleLogEvent
A subclass of LogEvent specifically tailored for logging events to the console.
ConsoleLogStrategy
A LogStrategy implementation that logs messages, errors, and fatal errors to the console.
FirebaseAnalyticsLogEvent
A subclass of LogEvent designed for integration with Firebase Analytics.
FirebaseAnalyticsLogStrategy
A LogStrategy implementation that utilizes Firebase Analytics to log events, errors, and fatal incidents.
FirebaseCrashlyticsLogEvent
A subclass of LogEvent that encapsulates data specific to Firebase Crashlytics logging.
FirebaseCrashlyticsLogStrategy
A LogStrategy implementation that logs messages and errors to Firebase Crashlytics.
LogEvent
A base class for creating log events, encapsulating information that can be logged.
SentryLogEvent
A subclass of LogEvent that encapsulates data specific to Sentry logging.
SentryLogStrategy
A LogStrategy implementation that logs messages and errors to Sentry.
StrategicLogger

Enums

LogLevel
Defines the severity levels for logging throughout the application.

Properties

logger StrategicLogger
A flexible and centralized logger that supports multiple logging strategies.
getter/setter pair

Exceptions / Errors

AlreadyInitializedError
An error indicating that an attempt was made to initialize an object that has already been initialized.
NotInitializedError
An error indicating that an attempt was made to use an object that has not yet been initialized.