On Wed, 28 Jun 2023 17:08:38 +0100
Patrick O'Callaghan <pocallaghan(a)gmail.com> wrote:
On Wed, 2023-06-28 at 08:37 -0700, stan via users wrote:
> On Wed, 28 Jun 2023 15:01:06 +0100
> Patrick O'Callaghan <pocallaghan(a)gmail.com> wrote:
>
> > On Wed, 2023-06-28 at 15:32 +0200, lejeczek via users wrote:
> > > Hi guys.
> > >
> > > I wonder if somebody might know how to customize, to change
> > > systemd journal's colours?
> > > I'm specifically thinking of changing 'WARN' warnings which
> > > get - in my opinion unfortunate, for I use other than white
> > > background colours - painted in yellow.
> >
> > AFAIK these are just the colours used by your default pager,
> > normally
> > 'less', so e.g. 'man less' for more information.
>
> Thanks for this pointer, serendipity as just last week I was
> wondering
> about this also.
See also 'man journalctl' and search for PAGER.
This is also relevant. Unfortunately, it seems that journalctl ignores
the input of SYSTEMD_LESS. It is hard to tell, because there is no
example of the kind of input it wants or whether it only accepts
options without arguments, as the default options all are. I would
probably have to look at the journalctl code to determine if they are
hard coded into the program. There is no configuration file to set
them in any case.