예제 #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)
}