func (sl *SessionLogger) Finalize() error {
	sl.Lock()
	defer sl.Unlock()
	if sl.streamFile != nil {
		log.Infof("sessionLogger.Finalize(sid=%s)", sl.sid)
		sl.streamFile.Close()
		sl.eventsFile.Close()
		sl.streamFile = nil
		sl.eventsFile = nil
	}
	return nil
}
// Finalize is called by the session when it's closing. This is where we're
// releasing audit resources associated with the session
Finalize is called by the session when it's closing. This is where we're
releasing audit resources associated with the session
// Finalize is called by the session when it ' s closing . This is where we ' re // releasing audit resources associated with the session
func (sl *SessionLogger) Finalize() error {
	sl.Lock()
	defer sl.Unlock()
	if sl.streamFile != nil {
		log.Infof("sessionLogger.Finalize(sid=%s)", sl.sid)
		sl.streamFile.Close()
		sl.eventsFile.Close()
		sl.streamFile = nil
		sl.eventsFile = nil
	}
	return nil
}
func ( sl * SessionLogger ) Finalize ( ) error { sl . Lock ( ) defer sl . Unlock ( ) if sl . streamFile != nil { log . Infof ( " " , sl . sid ) sl . streamFile . Close ( ) sl . eventsFile . Close ( ) sl . streamFile = nil sl . eventsFile = nil } return nil }
Finalize is called by the session when it's closing.
Finalize is called by the session when it ' s closing .