示例#1
0
文件: util.go 项目: jacobhaven/client
// OpenLogFile opens the standard Keybase logfile, and returns its
// name, its File object, or an Error if it didn't work out.
func OpenLogFile(g *GlobalContext) (name string, file *os.File, err error) {
	name = g.Env.GetLogFile()
	g.Log.Debug("+ OpenLogFile: %s\n", name)
	name, file, err = logger.OpenLogFile(name)
	g.Log.Debug("-> OpenLogFile -> %v\n", ErrToOk(err))
	return name, file, err
}
示例#2
0
文件: util.go 项目: gozes/kbfs-beta
// OpenLogFile opens the standard Keybase logfile, and returns its
// name, its File object, or an Error if it didn't work out.
func OpenLogFile() (name string, file *os.File, err error) {
	name = G.Env.GetLogFile()
	return logger.OpenLogFile(name)
}