cloudfoundry / lager

An opinionated logger for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go lager configuration file

qinggong opened this issue · comments

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!

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.

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

Closing due to inactivity.