Documentation
¶
Index ¶
- Variables
- func Config(name, key string) *ini.Key
- func Crash(args ...interface{})
- func Crashf(format string, args ...interface{})
- func Critical(arg0 interface{}, args ...interface{})
- func CriticalT(tag string, arg0 interface{}, args ...interface{})
- func Debug(arg0 interface{}, args ...interface{})
- func DebugT(tag string, arg0 interface{}, args ...interface{})
- func Error(arg0 interface{}, args ...interface{})
- func ErrorT(tag string, arg0 interface{}, args ...interface{})
- func Exit(args ...interface{})
- func Exitf(format string, args ...interface{})
- func Fine(arg0 interface{}, args ...interface{})
- func Finest(arg0 interface{}, args ...interface{})
- func GetConfFile() *ini.File
- func GetLevel() string
- func Info(arg0 interface{}, args ...interface{})
- func InfoT(tag string, arg0 interface{}, args ...interface{})
- func Log(lvl dlog.Level, source, message string)
- func Logc(lvl dlog.Level, closure func() string)
- func Logf(lvl dlog.Level, format string, args ...interface{})
- func NewGrpcClient(target string, makeRawClient func(conn *grpc.ClientConn) (interface{}, error), ...) *dgrpc.GrpcClient
- func NewHttpClient() *dhttp.HttpClient
- func NewRpcClient(timeout time.Duration, retryNum uint32) *dogrpc.RpcClient
- func SetConfPath(path string)
- func SetConfig(name, key, value string)
- func SetLevel(lvl int)
- func Stderr(args ...interface{})
- func Stderrf(format string, args ...interface{})
- func Stdout(args ...interface{})
- func Stdoutf(format string, args ...interface{})
- func Trace(arg0 interface{}, args ...interface{})
- func TraceT(tag string, arg0 interface{}, args ...interface{})
- func Warn(arg0 interface{}, args ...interface{})
- func WarnT(tag string, arg0 interface{}, args ...interface{})
- type Engine
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Crashf ¶ added in v1.6.7
func Crashf(format string, args ...interface{})
Logs the given message and crashes the program
func Critical ¶ added in v1.6.7
func Critical(arg0 interface{}, args ...interface{})
Utility for critical log messages (returns an error for easy function returns) (see Debug() for parameter explanation) These functions will execute a closure exactly once, to build the error message for the return Wrapper for (*Logger).Critical
func Error ¶ added in v1.6.7
func Error(arg0 interface{}, args ...interface{})
Utility for error log messages (returns an error for easy function returns) (see Debug() for parameter explanation) These functions will execute a closure exactly once, to build the error message for the return Wrapper for (*Logger).Error
func Exitf ¶ added in v1.6.7
func Exitf(format string, args ...interface{})
Compatibility with `log`
func Fine ¶ added in v1.6.7
func Fine(arg0 interface{}, args ...interface{})
Utility for fine log messages (see Debug() for parameter explanation) Wrapper for (*Logger).Fine
func Finest ¶ added in v1.6.7
func Finest(arg0 interface{}, args ...interface{})
Utility for finest log messages (see Debug() for parameter explanation) Wrapper for (*Logger).Finest
func GetConfFile ¶ added in v1.7.5
func Info ¶ added in v1.6.7
func Info(arg0 interface{}, args ...interface{})
Utility for info log messages (see Debug() for parameter explanation) Wrapper for (*Logger).Info
func NewGrpcClient ¶ added in v1.7.0
func NewGrpcClient(target string, makeRawClient func(conn *grpc.ClientConn) (interface{}, error), serviceName string) *dgrpc.GrpcClient
func NewHttpClient ¶ added in v1.6.5
func NewHttpClient() *dhttp.HttpClient
func NewRpcClient ¶ added in v1.6.5
timeout Millisecond
func Stderrf ¶ added in v1.6.7
func Stderrf(format string, args ...interface{})
Compatibility with `log`
func Stdoutf ¶ added in v1.6.7
func Stdoutf(format string, args ...interface{})
Compatibility with `log`
func Trace ¶ added in v1.6.7
func Trace(arg0 interface{}, args ...interface{})
Utility for trace log messages (see Debug() for parameter explanation) Wrapper for (*Logger).Trace
func Warn ¶ added in v1.6.7
func Warn(arg0 interface{}, args ...interface{})
Utility for warn log messages (returns an error for easy function returns) (see Debug() for parameter explanation) These functions will execute a closure exactly once, to build the error message for the return Wrapper for (*Logger).Warn
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
databases
|
|
|
mongodb/sample
command
|
|
|
mysqldb/sample
command
|
|
|
redisdb/sample
command
|
|
|
Package log4go provides level-based and highly configurable logging.
|
Package log4go provides level-based and highly configurable logging. |
|
sample
command
|
|
|
net
|
|
|
dgrpc/sample
command
|
|
|
dgrpc/sample/helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
|
dhttp
Package HttpClient is a simplified http client.
|
Package HttpClient is a simplified http client. |
|
runtime
|
|
|
gr
* * Copyright 2020 gd Author.
|
* * Copyright 2020 gd Author. |
|
helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
|
quick
command
|
|
|
sample
command
|
|