info method

Future<void> info(
  1. String message, [
  2. List<String> tags = const []
])
inherited

Logs an informational message with automatic tag merging.

Info messages track normal application behavior and important milestones. The class's loggerTags are automatically included.

Example:

await info('User ${user.id} profile updated successfully');

Parameters:

  • message - The informational message to log
  • tags - Additional tags to merge with loggerTags

Best Practices:

  • Log significant business events and state changes
  • Include relevant identifiers (user IDs, transaction IDs, etc.)
  • Keep messages concise but informative
  • Use consistent formatting for similar operations

Throws:

  • LoggerException if the global logger has been disposed

Implementation

Future<void> info(String message, [List<String> tags = const []]) async {
  await log(message, type: LogType.info, tags: tags);
}