Skip to content

logScope doesn't apply to generics #121

Open
@Menduist

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions