log.go
func (l *templateLogger) SetFormat(format string) error {
	l.m.Lock()
	defer l.m.Unlock()
	t, err := template.New("genmai").Parse(format)
	if err != nil {
		return err
	}
	l.t = t
	return nil
}
func (l *templateLogger) SetFormat(format string) error {
	l.m.Lock()
	defer l.m.Unlock()
	t, err := template.New("genmai").Parse(format)
	if err != nil {
		return err
	}
	l.t = t
	return nil
}
// SetFormat sets the format for logging.