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

Look into Werkzeug's documentation and see if there are any tools or improvements we could be leveraging #1276

Open
xlorepdarkhelm opened this issue Aug 16, 2024 · 3 comments
Assignees
Labels
engineering python Pull requests that update Python code

Comments

@xlorepdarkhelm
Copy link
Contributor

xlorepdarkhelm commented Aug 16, 2024

Look into Werkzeug's documentation and see if there are any tools or improvements we could be leveraging; for instance, Werkzeug supports colorized log output based on status codes

@xlorepdarkhelm xlorepdarkhelm converted this from a draft issue Aug 16, 2024
@xlorepdarkhelm xlorepdarkhelm self-assigned this Aug 16, 2024
@xlorepdarkhelm xlorepdarkhelm mentioned this issue Aug 16, 2024
4 tasks
@xlorepdarkhelm
Copy link
Contributor Author

Doing a simple search of the documentation, this seems to be the only reference to colored logging:

Colored Logging

The development server highlights the request logs in different colors based on the status code. On Windows, Colorama must be installed as well to enable this.

@xlorepdarkhelm xlorepdarkhelm moved this from 🌱 New to 🏗 In progress (WIP: ≤ 3 per person) in Notify.gov product board Aug 16, 2024
@xlorepdarkhelm xlorepdarkhelm added engineering python Pull requests that update Python code labels Aug 16, 2024
@xlorepdarkhelm
Copy link
Contributor Author

It is potentially possible to add simple colors to the loggers when they are output (with escaped ANSI color codes, or getting more advanced with build in tools like ncurses), but I am confident they wouldn't be translatable directly into the cloudwatch logger we use to look at things. We might be able to add some HTML codes into it to colorize, but that's starting to get just plain silly, and I don't even know if that would work.

@xlorepdarkhelm
Copy link
Contributor Author

The colored logging isn't something intrinsic to the werkzeug library persay, it is something the development server it can run is able to do. And.... it wouldn't be something brought into production (obviously). I'm looking for how to enable it, or if it is jsomething that just is and doesn't actually need any configuration.

@xlorepdarkhelm xlorepdarkhelm moved this from 🏗 In progress (WIP: ≤ 3 per person) to ✅ Done in Notify.gov product board Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering python Pull requests that update Python code
Projects
Archived in project
Development

No branches or pull requests

1 participant