Skip to content
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

Question: Sanitation of inputs by default #1285

Open
avalojc opened this issue Jan 28, 2025 · 1 comment
Open

Question: Sanitation of inputs by default #1285

avalojc opened this issue Jan 28, 2025 · 1 comment

Comments

@avalojc
Copy link

avalojc commented Jan 28, 2025

Hello, I noticed in the docs that it suggests escaping user values before logging them. But is there an easy way to sanitize special characters by default, or a plan to do so as other logging frameworks do?

@avalojc avalojc changed the title Sanitation of inputs by default Question: Sanitation of inputs by default Jan 28, 2025
@Delgan
Copy link
Owner

Delgan commented Jan 28, 2025

Hi.

I suggest to use serialize=True. This is the most common way of avoiding log injection attacks.

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

No branches or pull requests

2 participants