logMessage method
Legacy method for logging messages (for backward compatibility).
Legacy implementations: Override this method to maintain compatibility with older code.
This method now receives context automatically, even if your strategy was written before v1.4.0.
New implementations: Override log() and info() instead.
message - The message to log.
event - Optional. The specific log event associated with the message.
context - Optional. Additional context data (now available automatically!).
Implementation
Future<void> logMessage(
dynamic message,
LogEvent? event,
Map<String, dynamic>? context,
) async {
// Default: empty implementation
// Legacy strategies should override this method
}