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

Bug: Inconsistent levels when creating Entry from Logger #1158

Closed
iamolegga opened this issue Jul 20, 2020 · 28 comments · May be fixed by #1163
Closed

Bug: Inconsistent levels when creating Entry from Logger #1158

iamolegga opened this issue Jul 20, 2020 · 28 comments · May be fixed by #1163

Comments

@iamolegga
Copy link

Example: https://play.golang.org/p/zZODKE5p6SD

Is this a bug?

@markphelps
Copy link
Collaborator

@iamolegga that does look odd, I added some more output here: https://play.golang.org/p/Xe6QQx1igjo

You can see the entry is actually logging at the right level, ie it doesnt output 'debug' level messages since the root logger is configured to log at 'info' and above... however when you call entry.Level it still outputs level: panic which is incorrect.

logger level: info, entry level: panic
time="2009-11-10T23:00:00Z" level=info msg="I should be printed" foo=bar
logger level: info, entry level: panic

So I'm inclined to say that yes, it is a bug in that entry.Level does not seem to report the actual 'inherited level' that it is logging at.

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 12, 2021
@iamolegga
Copy link
Author

I believe this isn't fixed yet

@github-actions github-actions bot removed the stale label Sep 13, 2021
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 13, 2021
@iamolegga
Copy link
Author

ping

@github-actions github-actions bot removed the stale label Oct 14, 2021
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 14, 2021
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Nov 15, 2021
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 15, 2021
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Dec 16, 2021
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 15, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Jan 16, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot removed the stale label Feb 16, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 18, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Mar 19, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Apr 18, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Apr 19, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 19, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label May 20, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 19, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Jun 21, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 21, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Jul 22, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Aug 21, 2022
@iamolegga
Copy link
Author

not fixed

@github-actions github-actions bot removed the stale label Aug 23, 2022
@edoger
Copy link
Contributor

edoger commented Aug 30, 2022

@iamolegga The library is already inactive, maybe you should try another solution! Just like me.

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 30, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

Successfully merging a pull request may close this issue.

3 participants