ing
This commit is contained in:
parent
18bb52405c
commit
3692aeb915
|
@ -3,6 +3,7 @@ package logging
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"flag"
|
"flag"
|
||||||
|
"log"
|
||||||
|
|
||||||
"git.loafle.net/commons_go/config"
|
"git.loafle.net/commons_go/config"
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ func init() {
|
||||||
configPath := flag.String("config", ".", "The path of config")
|
configPath := flag.String("config", ".", "The path of config")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
log.Printf("logging: config path[%s]", *configPath)
|
log.Printf("logging: config path1[%s]", *configPath)
|
||||||
|
|
||||||
conf := config.New()
|
conf := config.New()
|
||||||
conf.SetConfigName("logging")
|
conf.SetConfigName("logging")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user