info method
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 logtags
- Additional tags to merge withloggerTags
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);
}