Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewZapLogger ¶
func MustNewZapLogger(opts ...LogOptFunc) *zap.Logger
MustNewZapLogger create zap logger, if prod is empty or prod[0] is false, use debug logger. else return prod logger.
Types ¶
type LogOptFunc ¶
type LogOptFunc func(o *LogOpts)
func WithDevEnv ¶
func WithDevEnv(b bool) LogOptFunc
Click to show internal directories.
Click to hide internal directories.