# README
logrus
logrus logger implementation for server-core meta logger.
Usage
import (
"os"
"github.com/sirupsen/logrus"
"github.com/maodapeng/server-core/logger"
)
func ExampleWithOutput() {
logger.DefaultLogger = NewLogger(logger.WithOutput(os.Stdout))
logger.Infof("testing: %s", "Infof")
}
func ExampleWithLogger() {
l := logrus.New() // *logrus.Logger
logger.DefaultLogger = NewLogger(WithLogger(l))
logger.Infof("testing: %s", "Infof")
}
# Functions
New builds a new logger based on options.
warning to use this option.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author