log method
Logs a message or event using the configured strategies.
Auto-initializes with ConsoleLogStrategy if not yet initialized.
message - The message to log. Can be a String, any object, or a
Function returning the message (lazy evaluation).
event - Optional. The specific log event associated with the message.
context - Optional. Additional context data.
Implementation
void log(dynamic message, {LogEvent? event, Map<String, Object>? context}) {
_ensureInitialized();
final entry = LogEntry.fromParams(
message: _resolveMessage(message),
level: LogLevel.info,
event: event,
context: context,
);
_logQueue!.enqueue(entry);
}