Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

stderr logurs hook copy logger once #2

Closed
Robpol86 opened this issue Nov 16, 2016 · 0 comments
Closed

stderr logurs hook copy logger once #2

Robpol86 opened this issue Nov 16, 2016 · 0 comments

Comments

@Robpol86
Copy link
Owner

Since entry.Logger is a pointer, it doesn't change between multiple entries. Therefore I can copy it (via reflect) once on startup and just set entry.Logger = &loggerOnceCopy instead.

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

No branches or pull requests

1 participant