logger library

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.
DatadogLogEvent
A specialized log event for Datadog logging strategy.
DatadogLogStrategy
A LogStrategy implementation that sends logs to Datadog using the v2 API.
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.
HttpLogStrategy
Base class for HTTP-based logging strategies.
LogEntry
Represents a log entry with complete context information.
LogEvent
A base class for creating log events, encapsulating information that can be logged.
ModernConsoleFormatter
Modern console formatter with colors, emojis, and structured output
NamedLogger
A named logger that automatically includes a logger name in the context.
NewRelicLogEvent
A specialized log event for New Relic logging strategy.
NewRelicLogStrategy
A LogStrategy implementation that sends logs to New Relic.
SentryLogEvent
A subclass of LogEvent that encapsulates data specific to Sentry logging.
SentryLogStrategy
A LogStrategy implementation that logs messages and errors to Sentry.
StrategicLogger
TerminalCapabilities
Detects terminal capabilities for ANSI color support.

Enums

LogLevel
Defines the severity levels for logging throughout the application.

Extensions

StrategicLoggerShorthand on StrategicLogger
Shorthand aliases for common logging methods.

Properties

logger StrategicLogger
A flexible and centralized logger that supports multiple logging strategies.
getter/setter pair
modernConsoleFormatter ModernConsoleFormatter
Global modern console formatter instance
final

Exceptions / Errors

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