func NewConfig(config *Config) *Handler {
	formatter := NewFormatter()
	formatter.ColorFn = colorify
	formatter.DisabledColor = !config.DisplayColor
	formatter.DisablePretty = !config.PrettyFormatting

	return &Handler{
		writer:    config.Writer,
		formatter: formatter,
	}
}
// NewConfig creates a handler with a config
NewConfig creates a handler with a config
// NewConfig creates a handler with a config
func NewConfig(config *Config) *Handler {
	formatter := NewFormatter()
	formatter.ColorFn = colorify
	formatter.DisabledColor = !config.DisplayColor
	formatter.DisablePretty = !config.PrettyFormatting
	return &Handler{
		writer:    config.Writer,
		formatter: formatter,
	}
}
func NewConfig ( config * Config ) * Handler { formatter := NewFormatter ( ) formatter . ColorFn = colorify formatter . DisabledColor = ! config . DisplayColor formatter . DisablePretty = ! config . PrettyFormatting return & Handler { writer : config . Writer , formatter : formatter , } }
NewConfig creates a handler with a config
NewConfig creates a handler with a config