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

logScope doesn't apply to generics #121

Open
Menduist opened this issue Nov 4, 2022 · 0 comments
Open

logScope doesn't apply to generics #121

Menduist opened this issue Nov 4, 2022 · 0 comments

Comments

@Menduist
Copy link
Contributor

Menduist commented Nov 4, 2022

test.nim:

import chronicles
export chronicles

logScope: topic = "test"

proc notgen* =
  info "ok"

proc zz*[T] =
  warn "oh no!"

test2.nim:

import test

notgen()
zz[int]() 

Output:

INF 2022-11-04 11:23:19.284+01:00 ok                                         tid=4340 topic=test
WRN 2022-11-04 11:23:19.284+01:00 oh no!                                     tid=4340
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

1 participant