Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LogLevel as additional Information #92

Open
jfudickar opened this issue Mar 21, 2023 · 7 comments
Open

Add LogLevel as additional Information #92

jfudickar opened this issue Mar 21, 2023 · 7 comments

Comments

@jfudickar
Copy link
Contributor

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 jfudickar changed the title Add LogLevel as additional Informatio Add LogLevel as additional Information Mar 23, 2023
@jfudickar
Copy link
Contributor Author

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

@exilon
Copy link
Owner

exilon commented Apr 30, 2023

Are you talking about File provider?

@jfudickar
Copy link
Contributor Author

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

@jfudickar
Copy link
Contributor Author

Any news?

@jfudickar
Copy link
Contributor Author

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

@exilon
Copy link
Owner

exilon commented Oct 10, 2023

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.

@jfudickar
Copy link
Contributor Author

I've started the first steps.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants