info static method

void info({
  1. String? content,
  2. String? title,
  3. String? category,
  4. Object? exception,
  5. StackTrace? stackTrace,
  6. int maxStackTraceLine = 20,
  7. bool hideStackTrace = true,
})

설명

  • 정보성 로그를 표시한다.
  • hideStackTrace의 기본값이 true로, 호출스택을 표시하지 않는다.

Implementation

static void info({
  final String? content,
  final String? title,
  final String? category,
  final Object? exception,
  final StackTrace? stackTrace,
  final int maxStackTraceLine = 20,
  final bool hideStackTrace = true,
}) {
  final newStackTrace = stackTrace ?? StackTrace.current.removeTop(1);
  LoggerCore.log(
    logLevel: LogLevel.info,
    title: title,
    content: content,
    category: category,
    exception: exception,
    stackTrace: newStackTrace,
    maxStackTraceLine: maxStackTraceLine,
    hideStackTrace: hideStackTrace,
  );
}