postgres database log color

michael-land
PRO

a year ago

Is there a method to alter the color of database log messages in the Railway logging system, or is this an area for potential enhancement? I'd like to avoid red colors for messages that aren't errors/crucial.

I'm aware of the filtering feature, but it doesn't save my preferences, requiring me to apply the filter anew each time.

3 Replies

michael-land
PRO

a year ago

5db697d6-4633-4389-a017-82ee62c54dcb


a year ago

postgres logs to stderr, thus it's being coloured red


rgmvisser
ENTERPRISE POC

a year ago

Hmm also bumped into this. @brody do you know a workaround for this? It really pollutes my logging now :P


a year ago

You can either set postgres to log to stdout or stderr (default) so the logs are either going to be all red or no red at all (even for actual errors)

https://www.postgresql.org/docs/8.2/runtime-config-logging.html


rgmvisser
ENTERPRISE POC

a year ago

Thanks, that should work for now


postgres database log color - Railway Help Station