Documentation ¶
Index ¶
- func Concat(key, seperator, value string) string
- func Err(err error, msg string, data ...*KV) error
- func FirstErr(values ...error) error
- func GetErrorMessage(e interface{}) string
- func LogDebug(l logging.LoggerBasic, m string, kv ...*logging.KV)
- func LogError(l logging.LoggerBasic, m string, err error, kv ...*logging.KV)
- func LogInform(l logging.LoggerBasic, m string, kv ...*logging.KV)
- func LogRecoveredPanic(l logging.LoggerBasic, m string, p interface{}, kv ...*logging.KV)
- func LogWarn(l logging.LoggerBasic, m string, kv ...*logging.KV)
- func LogWillPanic(l logging.LoggerBasic, m string, err error, kv ...*logging.KV)
- func NewErr(msg string, data ...*KV) error
- func SetConf(c *AppConf)
- func SetGlobalLogger(l logging.LoggerBasic)
- func StackTrace(er interface{}) string
- type AppConf
- type Application
- type KV
- type Program
- type ProgramValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRecoveredPanic ¶
func LogRecoveredPanic(l logging.LoggerBasic, m string, p interface{}, kv ...*logging.KV)
func LogWillPanic ¶
func SetGlobalLogger ¶
func SetGlobalLogger(l logging.LoggerBasic)
func StackTrace ¶
func StackTrace(er interface{}) string
StackTrace get the stack trace, if inside of a panic recover, will return the stack that called the panic r the data returned from the panic
Types ¶
type Application ¶
type Application interface {
Environment() string
}
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
var App *Program
func (*Program) Environment ¶
type ProgramValues ¶
Click to show internal directories.
Click to hide internal directories.