warn method

void warn(
  1. dynamic msg, {
  2. String? module,
  3. LokiLabel? labels,
})

Logs a warning message.

  • msg: The message to log.
  • module: The module name for the log.
  • labels: Additional labels for the log.

Implementation

void warn(msg, {String? module, LokiLabel? labels}) => _print(
    msg, Level.warn, module, {_level: Level.warn.toString(), ...?labels});