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

Global logger #15

Closed
johntdyer opened this issue Jul 3, 2014 · 4 comments
Closed

Global logger #15

johntdyer opened this issue Jul 3, 2014 · 4 comments

Comments

@johntdyer
Copy link

hello,

Sorry if this is a somewhat stupid question, but I am trying to define a global logger which I would use it multiple fils within my project. The structure is pretty simple:

src/
    tlookup.go  # main()
    papi.go      # rest 
    utils.go      # utils

the problem i am having is that if I define it in the main then I cant seem to reference the logger in methods in my other files. Any pointers you could git would be great. Thanks !

Thanks

-John

@op
Copy link
Owner

op commented Jul 4, 2014

Have you had a look at the example?

@johntdyer
Copy link
Author

I figured this out, totally user error.  Sorry still learning go :) -John Dyer
Sent from mobile

On Fri, Jul 4, 2014 at 6:43 AM, Örjan Persson notifications@github.com
wrote:

Have you had a look at the example?

Reply to this email directly or view it on GitHub:
#15 (comment)

@op
Copy link
Owner

op commented Jul 4, 2014

Sweet, closing then. Good luck!

@op op closed this as completed Jul 4, 2014
@herkyl
Copy link

herkyl commented Mar 20, 2016

You figured it out but how does it work?

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

3 participants