-
-
Notifications
You must be signed in to change notification settings - Fork 113
Description
I'm always frustrated when I need to categorize or label log messages in my app. Without a built-in way to add a name or tag, it becomes difficult to distinguish logs coming from different parts of the app, especially when debugging large applications.
Describe the solution you'd like
I would like to have a name or tag parameter for log messages. This would allow me to easily categorize or label logs when using the flutter_talker package. For example:
talker.debug('Test message', name: 'MyCustomTag');This would output:
[MyCustomTag] Test messageAllowing for consistent categorization across all log levels (debug, info, warn, error).
Describe alternatives you've considered
As an alternative, I could manually add the name or tag in the log message, but this becomes cumbersome and doesn't provide the same level of integration or convenience that a dedicated name parameter would offer.
Additional context
Currently, the default tag used for all logs is 'Talker', which can be found in the code at
| log(message, name: 'Talker'); |
Adding the ability to specify a custom tag would allow for better log management, especially in larger applications.