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

Logger registry singleton #122

Open
vit1251 opened this issue Feb 8, 2018 · 0 comments
Open

Logger registry singleton #122

vit1251 opened this issue Feb 8, 2018 · 0 comments

Comments

@vit1251
Copy link

vit1251 commented Feb 8, 2018

Could you create logger registry singleton for getLogger and setup handler from another part of application. Even if module precompile or using from other sources direcory.

package B

func main() {
    // TODO - create some handler ...
    getLogger('A.some_module').setHandler(renderer1)
    if ( verbose ) {
        getLogger('B.some_main_module').setHandelr(renderer2)
    }
}
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