You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ps-19 (via GitHub)" <gi...@apache.org> on 2023/03/30 07:34:31 UTC
[GitHub] [apisix-ingress-controller] ps-19 commented on issue #1643: feat: support change log level at runtime
ps-19 commented on issue #1643:
URL: https://github.com/apache/apisix-ingress-controller/issues/1643#issuecomment-1489833113
Can we use [Logrus](https://github.com/sirupsen/logrus)?
```
package log
import (
"os"
"github.com/sirupsen/logrus"
)
var logger *logrus.Logger
func Configure() {
logger = logrus.New()
logger.SetLevel(logrus.DebugLevel)
}
func SetLogLevel(level logrus.Level) {
logger.SetLevel(level)
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org