info method

  1. @override
void info(
  1. dynamic message, {
  2. String? tag,
  3. Object? error,
  4. StackTrace? stackTrace,
})

Logs a message with LogLevel.INFO.

Use this for standard log messages confirming normal application behavior.

Example:

logger.info('Application started', tag: 'AppInit');
  • message: The log message or object to log.
  • tag: Optional string categorizing the log (e.g. 'DB', 'Auth').
  • error: An associated error or exception.
  • stackTrace: An optional stack trace for context.

Implementation

@override
void info(dynamic message, {String? tag, Object? error, StackTrace? stackTrace}) {
  listener.onLog(LogLevel.INFO, message, error: error, stackTrace: stackTrace, tag: tag);
}