Skip to content

How to intercept the logs? #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
amrgetment opened this issue May 6, 2025 · 1 comment · May be fixed by #367
Open

How to intercept the logs? #365

amrgetment opened this issue May 6, 2025 · 1 comment · May be fixed by #367

Comments

@amrgetment
Copy link

I want to modify the message before printing it for all logs, I want to sanitize all the logs
But you use copyWith so even if I add my output function, I won'tbe able to use it

        logger: (logger ?? TalkerLogger()).copyWith(
          output: _defaultFlutterOutput,
        ),

Is there a workaround to sanitize all the logs?

@amrgetment
Copy link
Author

My issue will fix this too
#293
I think you could use

        logger: (logger ?? TalkerLogger()).copyWith(
          output:(logger ?? TalkerLogger()).output?? _defaultFlutterOutput,
        ),

techouse added a commit to techouse/talker that referenced this issue May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant