error static method

void error({
  1. String? className,
  2. String? methodName,
  3. required String text,
  4. dynamic exception,
  5. String? dataLogType,
  6. StackTrace? stacktrace,
})

error

Logs 'String' data along with class & function name to hourly based file with formatted timestamps.

@param className the class name @param methodName the method name @param text the text

Implementation

static void error({
  String? className,
  String? methodName,
  required String text,
  dynamic exception,
  String? dataLogType,
  StackTrace? stacktrace,
}) async {
  _logThis(className, methodName, text, LogLevel.ERROR, exception,
      dataLogType, stacktrace);
}