postgres database log color
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.
6 Replies
Project ID:
5db697d6-4633-4389-a017-82ee62c54dcb
5db697d6-4633-4389-a017-82ee62c54dcb
Solution
postgres logs to stderr, thus it's being coloured red
New reply sent from Help Station thread:
Hmm also bumped into this. @brody do you know a workaround for this? It really pollutes my logging now :PYou're seeing this because this thread has been automatically linked to the Help Station thread.
New reply sent from Help Station thread:
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 logs. https://www.postgresql.org/docs/8.2/runtime-config-logging.htmlYou're seeing this because this thread has been automatically linked to the Help Station thread.
PostgreSQL Documentation
Error Reporting and Logging
New reply sent from Help Station thread:
Thanks, that should work for nowYou're seeing this because this thread has been automatically linked to the Help Station thread.