// WriteToLog writes current error into log.
WriteToLog writes current error into log.
// WriteToLog writes current error into log .
func (v *Error) WriteToLog(opts ...ExportOption) {
	var holder ExportOptionHolder
	for _, opt := range opts {
		opt(&holder)
	}
	if holder.SessionID > 0 {
		v.prefix = append(v.prefix, holder.SessionID)
	}
	log.Record(&log.GeneralMessage{
		Severity: GetSeverity(v),
		Content:  v,
	})
}
func ( v * Error ) WriteToLog ( opts ... ExportOption ) { var holder ExportOptionHolder for _ , opt := range opts { opt ( & holder ) } if holder . SessionID > 0 { v . prefix = append ( v . prefix , holder . SessionID ) } log . Record ( & log . GeneralMessage { Severity : GetSeverity ( v ) , Content : v , } ) }
WriteToLog writes current error into log.
WriteToLog writes current error into log .