gramex icon indicating copy to clipboard operation
gramex copied to clipboard

Switch to rich for logging in color

Open sanand0 opened this issue 2 years ago • 2 comments

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

Rich logging screenshot

sanand0 avatar Nov 04 '22 05:11 sanand0

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

jaidevd avatar Nov 05 '22 10:11 jaidevd

Agree with @Jaidev @.***>’s comments.


From: Jaidev Deshpande @.> Sent: Saturday, November 5, 2022 4:09:36 PM To: gramener/gramex @.> Cc: Sandeep Bhat @.>; Mention @.> Subject: Re: [gramener/gramex] Switch to rich for logging in color (Issue #634)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/gramener/gramex/issues/634#issuecomment-1304493516, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQC65A6M2YVYOOWFFLENVNDWGY2ORANCNFSM6AAAAAARW27WNA. You are receiving this because you were mentioned.Message ID: @.***>

Disclaimer: This email may be confidential. Please don't share without consent. Inform the sender if you got it by mistake.

bhatsandeep avatar Nov 05 '22 12:11 bhatsandeep