StrategicLogger class
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Indicates whether the logger has been initialized.
no setter
- level → LogLevel
-
Current log level of the logger.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debug(
dynamic message, {LogEvent? event, Map< String, Object> ? context}) → Future<void> - Adds debug level logging
-
debugSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous debug logging (compatibility with popular logger packages)
-
debugSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous debug logging (compatibility with popular logger packages) -
dispose(
) → void - Disposes the logger and cleans up resources
-
error(
dynamic error, {StackTrace? stackTrace, LogEvent? event, Map< String, Object> ? context}) → Future<void> - Logs an error using the configured strategies.
-
errorSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous error logging (compatibility with popular logger packages)
-
errorSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous error logging (compatibility with popular logger packages) -
fatal(
dynamic error, {StackTrace? stackTrace, LogEvent? event, Map< String, Object> ? context}) → Future<void> - Logs a fatal error using the configured strategies.
-
fatalSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous fatal logging (compatibility with popular logger packages)
-
fatalSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous fatal logging (compatibility with popular logger packages) -
flush(
) → void - Forces flush of all queued logs
-
getPerformanceStats(
) → Map< String, dynamic> - Gets performance statistics
-
info(
dynamic message, {LogEvent? event, Map< String, Object> ? context}) → Future<void> - Logs a message or event using the configured strategies.
-
infoSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous info logging (compatibility with popular logger packages)
-
infoSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous info logging (compatibility with popular logger packages) -
initialize(
{List< LogStrategy> ? strategies, LogLevel level = LogLevel.none, bool useIsolates = true, bool enablePerformanceMonitoring = true, bool enableModernConsole = true}) → Future<void> - Configures the logger if it has not been initialized.
-
log(
dynamic message, {LogEvent? event, Map< String, Object> ? context}) → Future<void> - Logs a message or event using the configured strategies.
-
logStructured(
LogLevel level, dynamic message, {Map< String, Object> ? data, String? tag, DateTime? timestamp}) → Future<void> - Logs a message with structured data
-
logSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous log method (alias for info)
-
logSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous log method (alias for info) -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconfigure(
{List< LogStrategy> ? strategies, LogLevel level = LogLevel.none, bool useIsolates = true, bool enablePerformanceMonitoring = true, bool enableModernConsole = true}) → Future<void> - Reconfigures the logger even if it has been previously initialized.
-
toString(
) → String -
A string representation of this object.
inherited
-
verbose(
dynamic message, {LogEvent? event, Map< String, Object> ? context}) → Future<void> - Adds verbose level logging (alias for debug)
-
verboseSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous verbose logging (alias for debug)
-
verboseSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous verbose logging (alias for debug) -
warning(
dynamic message, {LogEvent? event, Map< String, Object> ? context}) → Future<void> - Adds warning level logging
-
warningSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void - Synchronous warning logging (compatibility with popular logger packages)
-
warningSync(
dynamic message, [dynamic error, StackTrace? stackTrace]) → void -
Available on StrategicLogger, provided by the StrategicLoggerSyncCompatibility extension
Synchronous warning logging (compatibility with popular logger packages)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited