func (a *AuditTestSuite) makeLog(c *check.C, dataDir string) (*AuditLog, error) {
	alog, err := NewAuditLog(dataDir)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	retval, ok := alog.(*AuditLog)
	if !ok {
		c.FailNow()
	}
	return retval, nil
}
// creates a file-based audit log and returns a proper *AuditLog pointer
// instead of the usual IAuditLog interface
creates a file-based audit log and returns a proper *AuditLog pointer
instead of the usual IAuditLog interface
// creates a file - based audit log and returns a proper * AuditLog pointer // instead of the usual IAuditLog interface
func (a *AuditTestSuite) makeLog(c *check.C, dataDir string) (*AuditLog, error) {
	alog, err := NewAuditLog(dataDir)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	retval, ok := alog.(*AuditLog)
	if !ok {
		c.FailNow()
	}
	return retval, nil
}
func ( a * AuditTestSuite ) makeLog ( c * check . C , dataDir string ) ( * AuditLog , error ) { alog , err := NewAuditLog ( dataDir ) if err != nil { return nil , trace . Wrap ( err ) } retval , ok := alog . ( * AuditLog ) if ! ok { c . FailNow ( ) } return retval , nil }
creates a file-based audit log and returns a proper *AuditLog pointer
instead of the usual IAuditLog interface
creates a file - based audit log and returns a proper * AuditLog pointer instead of the usual IAuditLog interface