1
0
mirror of https://github.com/beego/bee.git synced 2025-07-14 23:31:02 +00:00

This makes the logger instance a singleton

This commit is contained in:
Faissal Elamraoui
2016-11-16 12:33:01 +01:00
parent 21fc177551
commit 6b27ef186a
2 changed files with 12 additions and 3 deletions

2
bee.go
View File

@ -90,6 +90,8 @@ var commands = []*Command{
cmdFix,
}
var logger = GetBeeLogger(os.Stdout)
func main() {
flag.Usage = usage
flag.Parse()