log function

void log(
  1. String message, [
  2. String key = 'LOG'
])

Logs a message with an optional key.

  • Parameter message: The message to be logged.
  • Parameter key: An optional key to categorize the log. Defaults to 'LOG'.

Implementation

void log(String message, [String key = 'LOG']) {
  DragonLogs._logger
      .log(key, message, metadata: DragonLogs._instance._metadata);
}