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

Switch to rich for logging in color #634

Open
sanand0 opened this issue Nov 4, 2022 · 2 comments
Open

Switch to rich for logging in color #634

sanand0 opened this issue Nov 4, 2022 · 2 comments

Comments

@sanand0
Copy link
Contributor

sanand0 commented Nov 4, 2022

rich has a good interface for logging in color. Should we switch to this, @bhatsandeep @jaidevd?

Rich logging screenshot

@jaidevd
Copy link
Member

jaidevd commented Nov 5, 2022

Viewing Gramex logs in the browser is very important for the IDE (not sure if this is also true for UAT). So switch to rich (or anything else) as long as it provides easy configuration of logging to HTML as well as the terminal.

What I mean is - I don't want to write too much code to render Gramex logs on web pages. Maybe something like this:

gramexlog:
  color: ascii  # or
  color: html  # And then simply pipe the STD{OUT, ERR} to an html file

@bhatsandeep
Copy link

bhatsandeep commented Nov 5, 2022 via email

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

3 participants