2017-01-30 12:12:25 +00:00
|
|
|
package ipfscluster
|
|
|
|
|
2017-03-10 16:24:25 +00:00
|
|
|
import logging "github.com/ipfs/go-log"
|
2017-01-30 12:12:25 +00:00
|
|
|
|
|
|
|
var logger = logging.Logger("cluster")
|
2017-03-10 16:24:25 +00:00
|
|
|
|
|
|
|
var facilities = []string{
|
|
|
|
"cluster",
|
|
|
|
"restapi",
|
|
|
|
"ipfshttp",
|
|
|
|
"monitor",
|
|
|
|
"consensus",
|
|
|
|
"raft",
|
|
|
|
}
|
2017-01-30 12:12:25 +00:00
|
|
|
|
2017-02-02 22:52:06 +00:00
|
|
|
// SetFacilityLogLevel sets the log level for a given module
|
|
|
|
func SetFacilityLogLevel(f, l string) {
|
2017-01-30 12:12:25 +00:00
|
|
|
/*
|
|
|
|
CRITICAL Level = iota
|
|
|
|
ERROR
|
|
|
|
WARNING
|
|
|
|
NOTICE
|
|
|
|
INFO
|
|
|
|
DEBUG
|
|
|
|
*/
|
2017-02-02 22:52:06 +00:00
|
|
|
logging.SetLogLevel(f, l)
|
2017-01-30 12:12:25 +00:00
|
|
|
}
|