w method

void w(
  1. dynamic message, {
  2. bool includeTrace = false,
})

Log a warning message

Use includeTrace to include the stack trace in the log. Note that this will use more memory, and should be used only for debugging purposes

Implementation

void w(
    /// Message to log. Can be any type
    /// If the message does not have a string representation, it will be printed as is
    dynamic message, {
      /// Set to true to include the stack trace in the log. Note that this will use
      /// more memory, and should be used only for debugging purposes
      bool includeTrace = false}) {
  StackTrace trace = StackTrace.empty;
  if (includeTrace) {
    trace = StackTrace.current;
  }
  _createLog(LogLevel.warning, message, trace);
}