log function
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);
}