// mainLoop reads from BaseHandler queue using h.Get and logs messages to stdout
mainLoop reads from BaseHandler queue using h.Get and logs messages to stdout
// mainLoop reads from BaseHandler queue using h . Get and logs messages to stdout
func (h *handler) mainLoop() {
	for {
		m := h.Get()
		if m == nil {
			break
		}
		h := m.Hostname + " "
		if h == " " {
			h = "app: "
		}
		log.Printf("%s: %s%s: %s%s\n", m.Facility, h, m.Severity, m.Tag, m.Content)
	}
	log.Println("exit handler")
	h.End()
}
func ( h * handler ) mainLoop ( ) { for { m := h . Get ( ) if m == nil { break } h := m . Hostname + " " if h == " " { h = " " } log . Printf ( " \n " , m . Facility , h , m . Severity , m . Tag , m . Content ) } log . Println ( " " ) h . End ( ) }
mainLoop reads from BaseHandler queue using h.Get and logs messages to stdout
mainLoop reads from BaseHandler queue using h . Get and logs messages to stdout