func NewTemplateMsg(timestamp time.Time, level LogLevel, m map[string]interface{}, msg string) *TemplateMsg {
	msgAttrs := m
	if msgAttrs == nil {
		msgAttrs = make(map[string]interface{})
	}
	tplMsg := &TemplateMsg{
		Timestamp: timestamp,
		Message:   msg,
		Level:     level,
		LevelName: level.String(),
		Attrs:     msgAttrs,
	}
	return tplMsg
}
func NewTemplateMsg(timestamp time.Time, level LogLevel, m map[string]interface{}, msg string) *TemplateMsg {
	msgAttrs := m
	if msgAttrs == nil {
		msgAttrs = make(map[string]interface{})
	}
	tplMsg := &TemplateMsg{
		Timestamp: timestamp,
		Message:   msg,
		Level:     level,
		LevelName: level.String(),
		Attrs:     msgAttrs,
	}
	return tplMsg
}
func NewTemplateMsg ( timestamp time . Time , level LogLevel , m map [ string ] interface { } , msg string ) * TemplateMsg { msgAttrs := m if msgAttrs == nil { msgAttrs = make ( map [ string ] interface { } ) } tplMsg := & TemplateMsg { Timestamp : timestamp , Message : msg , Level : level , LevelName : level . String ( ) , Attrs : msgAttrs , } return tplMsg }
// NewTemplateMsg will create a new TemplateMsg with values from the given parameters
NewTemplateMsg will create a new TemplateMsg with values from the given parameters