Configure log level
Author: e-zhydzetskiCreated Oct 15, 2023Updated Nov 26, 2024
Is your feature request related to a problem? Please describe. ZincSearch log is full of debug msgs like
{"level":"debug","index":"events","shard":"22zDW8VJB9m","minID":0,"maxID":1,"time":"2023-10-15T07:23:10Z","message":"consume wal begin"}
{"level":"debug","index":"events","shard":"22zDW8VJB9m","minID":1,"maxID":1,"time":"2023-10-15T07:23:11Z","message":"consume wal end"}
{"level":"debug","index":"events","shard":"22zDW8VJDhu","minID":0,"maxID":2,"time":"2023-10-15T07:23:11Z","message":"consume wal begin"}
{"level":"debug","index":"events","shard":"22zDW8VJCdq","minID":0,"maxID":2,"time":"2023-10-15T07:23:11Z","message":"consume wal begin"}
...I want to disable them and log only errors, but can't find any configuration option about log level in documentation
Describe the solution you'd like
LOG_LEVEL env variable to control minimal relevant log level
Like LOG_LEVEL=ERROR or LOG_LEVEL=error or LOG_LEVEL=3 (according to zerolog)
Describe alternatives you've considered As alternative I can use filtering feature in external log processing pipeline, that is inconvinient in simple deployments
Additional context No
Source: zincsearch/zincsearch