Skip to content

proposal: add constant flag in logging to log the goroutine id to trace the bug #27361

Closed
@NetWilliam

Description

@NetWilliam

I have understood that there are some disadvantages in getting the goroutine ID in the program. However, I also have noticed that in https://golang.org/pkg/log/#pkg-constants we have some approach to logging the file name and line no etc...

I think it would very useful in the debugging of a program if goroutine ID could be logged in a similar way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions