æ·feat: commplete init process
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"os"
|
||||
)
|
||||
|
||||
var Logger = logrus.New()
|
||||
|
||||
func Setup() {
|
||||
Logger := logrus.New()
|
||||
Logger.SetFormatter(&logrus.JSONFormatter{})
|
||||
Logger.SetOutput(os.Stdout)
|
||||
Logger.SetLevel(logrus.InfoLevel)
|
||||
}
|
||||
Reference in New Issue
Block a user