Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReName = regexp.MustCompile(`^[[:alnum:]\-_.]{2,200}`)
ReName is a regular which tests valid app name for logger configuration
Functions ¶
func CheckAppName ¶
CheckAppName validates the application name against `ReName` `what` is the an optional argument to specify name category / family.
func Configure ¶
Configure setups the root logger. If the logger `name` is already registered then it's upgraded according to given config.
func MustAppName ¶
func MustAppName(name, what string)
MustAppName validates if `name` matches `ReName` and panics (through logger.Fail) if it doesn't match.
func MustLogger ¶
MustLogger setups logger. It panics when the provided configuration is malformed. envName is the name of running environment; eg: localhost, qa, stagging, prod...
Types ¶
Click to show internal directories.
Click to hide internal directories.