Documentation ¶
Index ¶
- Variables
- func Debug(l *LogData)
- func Error(l *LogData)
- func ErrorWithoutTrack(l *LogData)
- func Fatal(l *LogData)
- func HasPointer(typeName string) bool
- func Info(l *LogData)
- func ParseToString(v Any) string
- func ParseToType(v Any) string
- func Print(v Any, depth int)
- func PrintHeader(v ...Any)
- func SendSentry(args map[string]string, label string, req *http.Request, e error)
- func SendSentryMapData(args map[string]string, req *http.Request, e error)
- func SetConfig(conf Config)
- func SetDefaultConfig()
- func SetDefaultLogger()
- func Warn(l *LogData)
- type Any
- type Config
- type DefaultConfig
- type DefaultLogger
- type LogData
- type Loggers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logger Loggers SentryLevel int )
Functions ¶
func SendSentry ¶
send data to sentry
func SetDefaultConfig ¶
func SetDefaultConfig()
func SetDefaultLogger ¶
func SetDefaultLogger()
Types ¶
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶
func NewDefaultConfig(path string) *DefaultConfig
func (*DefaultConfig) GetConfigValue ¶
func (c *DefaultConfig) GetConfigValue(section, key string) string
func (*DefaultConfig) GetConfigValueDefault ¶
func (c *DefaultConfig) GetConfigValueDefault(section, key, defaultValue string) string
get parameter from json file
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.