SetLogFormat sets the default format for the logger.
TODO: "set" on the name doesn't make sense, as it isn't receiving nothing to set. In my view, "use" could be a better
naming, as it will "use" the environmental variable.
TODO: "set" on the name doesn't make sense, as it isn't receiving nothing to set. In my view, "use" could be a better
naming, as it will "use" the environmental variable.
LogFormat represents how logger should print logs.
const (
// LogFormatJSON format for JSON log. LogFormatJSON LogFormat = "json"
// LogFormatText format for text log. LogFormatText LogFormat = "text"
)