Skip to content

Feature Request: Add name Parameter for Log Messages #279

@weitsai

Description

@weitsai

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 message

Allowing 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

Adding the ability to specify a custom tag would allow for better log management, especially in larger applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    considerationAwaiting a decision on implementationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions