// HandleLog implements log.Handler.
HandleLog implements log.Handler.
// HandleLog implements log . Handler .
func (h *Handler) HandleLog(e *log.Entry) error {
	level := Strings[e.Level]
	names := e.Fields.Names()
	h.mu.Lock()
	defer h.mu.Unlock()
	fmt.Fprintf(h.Writer, "%s %-5s %-25s", e.Timestamp.Format("2006/01/02 15:04:05"), level, e.Message)
	for _, name := range names {
		if name == "source" {
			continue
		}
		fmt.Fprintf(h.Writer, " %s=%v", name, e.Fields.Get(name))
	}
	fmt.Fprintln(h.Writer)
	return nil
}
func ( h * Handler ) HandleLog ( e * log . Entry ) error { level := Strings [ e . Level ] names := e . Fields . Names ( ) h . mu . Lock ( ) defer h . mu . Unlock ( ) fmt . Fprintf ( h . Writer , " " , e . Timestamp . Format ( " " ) , level , e . Message ) for _ , name := range names { if name == " " { continue } fmt . Fprintf ( h . Writer , " " , name , e . Fields . Get ( name ) ) } fmt . Fprintln ( h . Writer ) return nil }
HandleLog implements log.Handler.
HandleLog implements log . Handler .