mirror of https://bitbucket.org/ausocean/av.git
rename smartlogger
This commit is contained in:
parent
6578511dc8
commit
c08a2c079f
|
@ -37,7 +37,7 @@ import (
|
||||||
|
|
||||||
"bitbucket.org/ausocean/av/revid"
|
"bitbucket.org/ausocean/av/revid"
|
||||||
"bitbucket.org/ausocean/iot/pi/netsender"
|
"bitbucket.org/ausocean/iot/pi/netsender"
|
||||||
"bitbucket.org/ausocean/utils/smartLogger"
|
"bitbucket.org/ausocean/utils/smartlogger"
|
||||||
|
|
||||||
linuxproc "github.com/c9s/goprocinfo/linux"
|
linuxproc "github.com/c9s/goprocinfo/linux"
|
||||||
)
|
)
|
||||||
|
@ -242,7 +242,7 @@ func main() {
|
||||||
config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr]
|
config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr]
|
||||||
|
|
||||||
// Also give the config a logger object
|
// Also give the config a logger object
|
||||||
config.Logger = smartLogger.New(loggerVerbosity, smartLogger.File, "/var/log/netsender/")
|
config.Logger = smartlogger.New(loggerVerbosity, smartlogger.File, "/var/log/netsender/")
|
||||||
|
|
||||||
//init netsender
|
//init netsender
|
||||||
if *netSenderFlagPtr {
|
if *netSenderFlagPtr {
|
||||||
|
|
|
@ -32,8 +32,8 @@ import (
|
||||||
_ "fmt"
|
_ "fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"bitbucket.org/ausocean/utils/smartLogger"
|
"bitbucket.org/ausocean/utils/smartlogger"
|
||||||
//"../../utils/smartLogger"
|
//"../../utils/smartlogger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config provides parameters relevant to a revid instance. A new config must
|
// Config provides parameters relevant to a revid instance. A new config must
|
||||||
|
@ -60,7 +60,7 @@ type Config struct {
|
||||||
Quantization string
|
Quantization string
|
||||||
Timeout string
|
Timeout string
|
||||||
IntraRefreshPeriod string
|
IntraRefreshPeriod string
|
||||||
Logger smartLogger.LogInstance
|
Logger smartlogger.LogInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enums for config struct
|
// Enums for config struct
|
||||||
|
|
Loading…
Reference in New Issue