QuickLogger icon indicating copy to clipboard operation
QuickLogger copied to clipboard

Add LogLevel as additional Information

Open jfudickar opened this issue 2 years ago • 7 comments

Hi, i would like to see something like a log level (as an integer) which could be used like a log stack information. I want to use it for the following use cases:

  • Increasing / Decreasing when entering / leaving a block. So i can see clearly what happened in this block.
  • Based on the log level I can then calculate automatically the duration from the last log call on the same level.
  • I would also add an optional functionality to add blanks or \t before the log message based on the log level to allow a visualisation of the levels when reading the log.

Parts of that you can see in the CodeSite components. I didn't want to replace them but get some things out of this.

Do you think this could be helpful/usefull? I could create a first Pull request for this.

Regards Jens

jfudickar avatar Mar 21 '23 12:03 jfudickar

Do you think it makes sense that I invest some time and create a pull request for that?

jfudickar avatar Apr 16 '23 15:04 jfudickar

Are you talking about File provider?

exilon avatar Apr 30 '23 21:04 exilon

No, I would add this to the core functionality, s9 that it can be used for all log providers

jfudickar avatar Apr 30 '23 21:04 jfudickar

Any news?

jfudickar avatar Aug 10 '23 22:08 jfudickar

??? I can provide a pull request for that, but I do not want to invest time if it's not wanted.

jfudickar avatar Sep 20 '23 22:09 jfudickar

It must be an optional feature and don't alter normal flow of actual logger core. Quick.Debug implements a similar functionaliy getting elapsed time between a block or function.

exilon avatar Oct 10 '23 07:10 exilon

I've started the first steps.

Can you have a look on it here : https://github.com/jfudickar/QuickLogger/tree/LogLevel

jfudickar avatar Nov 13 '23 23:11 jfudickar