diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-07 20:57:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-07 20:57:04 +0800 |
commit | 688d118c7e0d439691e84fc6e068ab3e19da5185 (patch) | |
tree | 6891a60950e0c2956c9f2d4fed6fceb67430775c /logger/glog/glog_file.go | |
parent | 01b2c90179ff82e4610745aea0e3e3ca53756305 (diff) | |
download | go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.gz go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.bz2 go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.lz go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.xz go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.zst go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.zip |
Updated logging
Diffstat (limited to 'logger/glog/glog_file.go')
-rw-r--r-- | logger/glog/glog_file.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logger/glog/glog_file.go b/logger/glog/glog_file.go index 847e9b07c..2fc96eb4e 100644 --- a/logger/glog/glog_file.go +++ b/logger/glog/glog_file.go @@ -40,6 +40,10 @@ var logDirs []string //var logDir = flag.String("log_dir", "", "If non-empty, write log files in this directory") var logDir *string = new(string) +func SetLogDir(str string) { + *logDir = str +} + func createLogDirs() { if *logDir != "" { logDirs = append(logDirs, *logDir) |