$ open source · GPL-3.0 — need a commercial license? imqueue.com →

SQL_COLORIZE variable

Whether logged SQL carries ANSI colour. Off by default.

Signature:

SQL_COLORIZE: boolean

Remarks

Set SQL_COLORIZE to a positive number to enable. Worth leaving off wherever logs are collected rather than read in a terminal, since the escape sequences end up in the stored line. Independent of SQL_PRETTIFY.