Example #1
0
// 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
}
Example #2
0
// 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)
}