diff --git a/logs/lokiwriter.go b/logs/lokiwriter.go index 4df2224..ed73595 100644 --- a/logs/lokiwriter.go +++ b/logs/lokiwriter.go @@ -56,7 +56,9 @@ func (w *LokiWriter) Write(p []byte) (n int, err error) { labels["level"] = level // Add label that have been added to the event - + // A bit unsafe since we don't know what could be stored in the event + // but we can't access this object once passed to the multilevel writter + for k,v := range(event){ if k != "level" && k != "time" && k != "message"{ data := v.(map[string]string)