chaturbate-dvr icon indicating copy to clipboard operation
chaturbate-dvr copied to clipboard

Control frequency of logging info

Open Anangaya opened this issue 1 year ago • 5 comments

I want to keep log level as info, but increase the time between the logs so I can see some action.

Anangaya avatar Feb 11 '24 09:02 Anangaya

You want the INFO message to be slowed down? well, but it's a bit hard because it logs everytime something happened 🤔

YamiOdymel avatar Feb 11 '24 10:02 YamiOdymel

option to only display the latest info log would work as well. warnings and errors should create new lines though

Anangaya avatar Feb 11 '24 13:02 Anangaya

Are you talking about the logs in Terminal or Web UI?

It sounds like you want the INFO message to be appeared in it's own line, and the new INFO message will replace the old one.

But logs is something that keeps printing/appending, it's impossible to replace the old line with a new message.

I want to keep log level as info, increase the time between the logs so I can see some action.

Perhaps you can have a explain the "action" you were trying to achieve, so we can have a solution for the original problem.

Maybe some INFO messages are too meaningless, so "segment 1# inserted"- thing should be DEBUG?

YamiOdymel avatar Feb 11 '24 14:02 YamiOdymel

I'm looking to make INFO logs in the terminal less cluttered, similar to how progress bars update by replacing old output. This would help in focusing on significant actions without the terminal getting overwhelmed. Ideally, INFO messages would update in place, while warnings and errors would still log as new entries.

This or reduce the frequency of the INFO logs for every 10 segments or something.

Anangaya avatar Feb 11 '24 14:02 Anangaya

I see now, but it sounds difficult to replace INFO message inline meanwhile WARN/ERROR has it's own line 💀

Just let me-, let me think about it.

YamiOdymel avatar Feb 11 '24 14:02 YamiOdymel