Monday, 20 July 2020

How to trigger debug logs?

We have a production app which logs mostly using debug module. The problem is we store all logs in a file on server and if we start storing debug logs in file it will take up too much space. We have a process (let's say TEST), which we call around 1000 times in an hour. We also use consul to change the flow of code without actually committing any code. We were wondering if there is a way to trigger DEBUG logs of a specific prefix (such as debug logs starting with test) remotely using consul or any other way. For example if I have debug('test.file1') then I need these debug logs to get triggered.

Submitted July 20, 2020 at 05:10PM by GhostFoxGod

No comments:

Post a Comment