Log file format

I’m very new to ChirpStack so apologies in advance if this is question has an obvious answer which I can’t seem to find.
I have a brand new V4 setup running on a brand new Debian installation.
The network server provides lots of log entries in /var/log/syslog but they appear to contain ANSI terminal ESC codes.
For example:

Apr  3 14:10:31 chst chirpstack[1102]: #033[2m2023-04-03T04:10:31.772500Z#033[0m #033[32m INFO#033[0m #033[1mstats#033[0m#033[1m{#033[0m#033[3mgateway_id#033[0m#033[2m=#033[0mc0ee40ffff29de04#033[1m}#033[0m#033[2m:#033[0m #033[2mchirpstack::storage::gateway#033[0m#033[2m:#033[0m Gateway state updated #033[3mgateway_id#033[0m#033[2m=#033[0mc0ee40ffff29de04

V4 documentation doesn’t show any logging related information but the installed configuration file (chirpstack.toml) has a section named [logging] where I can set the log level.
How can I disable the ESC codes in the log entries?

If you are using Debian or Ubuntu, please try the following command:

journalctl -f -n 100 -u chirpstack

(-n 100 to give you some initial history)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.