LoggerServiceImpl class

Implementation of LoggerService

This class provides a concrete implementation of the LoggerService interface. It utilizes the Logger package to log messages to the console or other outputs. It also includes a toggle to enable or disable logging.

Implemented types

Constructors

LoggerServiceImpl(Logger _logger, bool _enableLogging)
Constructor that initializes the logger and enables/disables logging based on enableLogging.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

log(String message, {Level level = Level.info}) → void
Logs a general message to the logger.
override
logCompletionTime(DateTime startTime, String operation) → void
Logs the time taken to complete an operation.
override
logError(String message, String errorDetails, {Level level = Level.error}) → void
Logs an error message with additional details.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited