Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogLevel = "RASPBERRY_LOGLEVEL" Error = "error" Warn = "warn" Debug = "debug" )
Defines for consitants about log
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get gets log that extend capabilities, e.g. translations Config supported by os env params `RASPBERRY_LOGLEVEL`
func LoadTranslations ¶
func LoadTranslations(thing map[string]interface{})
LoadTranslations takes a map[string]interface and flattens it to map[string]string Because translations have been loaded - we internally override log the formatter Nested entries are accessible using dot notation. example: `{"foo": {"bar": "baz"}}` flattened: `foo.bar: baz`
Types ¶
type RawFormatter ¶
type RawFormatter struct{}
RawFormatter defines that does not extends any capabilities.
type TranslationFormatter ¶
type TranslationFormatter struct {
*prefixed.TextFormatter
}
TranslationFormatter defines that extends capabilities of TextFormartter.
Click to show internal directories.
Click to hide internal directories.