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

Go lager configuration file #12

Closed
qinggong opened this issue Sep 2, 2015 · 3 comments
Closed

Go lager configuration file #12

qinggong opened this issue Sep 2, 2015 · 3 comments

Comments

@qinggong
Copy link

qinggong commented Sep 2, 2015

What's the default location of the logging configuration file for lager? Specifically, if I want to change logging level, where can I find this config file for cloud foundry?

Thank you!

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/102573602.

@emalm
Copy link
Member

emalm commented Sep 18, 2015

Hi, @qinggong,

The lager package doesn't process a config file to register sinks. You have to add them to your logger explicitly, as in the Sinks section of the README. For the WriterSink that lager itself supplies, one of the arguments to the constructor function is the log level for it to filter on. You could also create your own type that conforms to the Sink interface if you want to do something more sophisticated with the log level.

Thanks,
Eric, CF Runtime Diego PM

@emalm
Copy link
Member

emalm commented Oct 12, 2015

Closing due to inactivity.

@emalm emalm closed this as completed Oct 12, 2015
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