func (db *DB) SetLogPath(logPath string) error {
	logFile, err := os.OpenFile(logPath, os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
	if err != nil {
		panic(err)
	}

	mw := io.MultiWriter(os.Stdout, logFile)
	logging.SetLogFile(mw)
	return nil
}
// SetLogPath sets the log path for the database, and tells it to also print to stdout. This should be changed in the future so only verbose clients log to stdout
SetLogPath sets the log path for the database, and tells it to also print to stdout. This should be changed in the future so only verbose clients log to stdout
// SetLogPath sets the log path for the database and tells it to also print to stdout . This should be changed in the future so only verbose clients log to stdout
func (db *DB) SetLogPath(logPath string) error {
	logFile, err := os.OpenFile(logPath, os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
	if err != nil {
		panic(err)
	}
	mw := io.MultiWriter(os.Stdout, logFile)
	logging.SetLogFile(mw)
	return nil
}
func ( db * DB ) SetLogPath ( logPath string ) error { logFile , err := os . OpenFile ( logPath , os . O_CREATE | os . O_APPEND | os . O_RDWR , 0666 ) if err != nil { panic ( err ) } mw := io . MultiWriter ( os . Stdout , logFile ) logging . SetLogFile ( mw ) return nil }
SetLogPath sets the log path for the database, and tells it to also print to stdout.
SetLogPath sets the log path for the database and tells it to also print to stdout .