e method

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

Log an error 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 e(
    /// 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.error, message, trace);
}