Logrus: Change log level at runtime?

Created on 12 Oct 2016  路  2Comments  路  Source: sirupsen/logrus

Can I change the log level at runtime? For example, if I have a flag --debug then set DebugLevel.

I'm using urfave/cli (formerly codegangsta/cli) to access flags.

Most helpful comment

logrus.SetLevel( ... )

All 2 comments

logrus.SetLevel( ... )

@mrichman please close this issue as your question has been answered.

Was this page helpful?
0 / 5 - 0 ratings