Documentation ¶
Index ¶
- func DPanic(v ...any)
- func DPanicF(format string, v ...any)
- func DPanicW(msg string, kv ...any)
- func Debug(v ...any)
- func DebugF(format string, v ...any)
- func DebugW(msg string, kv ...any)
- func Error(v ...any)
- func ErrorF(format string, v ...any)
- func ErrorW(msg string, kv ...any)
- func Fatal(v ...any)
- func FatalF(format string, v ...any)
- func FatalW(msg string, kv ...any)
- func Info(v ...any)
- func InfoF(format string, v ...any)
- func InfoW(msg string, kv ...any)
- func Init()
- func Panic(v ...any)
- func PanicF(format string, v ...any)
- func PanicW(msg string, kv ...any)
- func Warn(v ...any)
- func WarnF(format string, v ...any)
- func WarnW(msg string, kv ...any)
- type ConfigOption
- func (o *ConfigOption) Load() *ConfigOption
- func (o *ConfigOption) WithErrorOutputPaths(s ...string) *ConfigOption
- func (o *ConfigOption) WithLogCaller(ok bool) *ConfigOption
- func (o *ConfigOption) WithLogEngine(logEngine string) *ConfigOption
- func (o *ConfigOption) WithLogEngineStd() *ConfigOption
- func (o *ConfigOption) WithLogEngineSugar() *ConfigOption
- func (o *ConfigOption) WithLogEngineZap() *ConfigOption
- func (o *ConfigOption) WithLogLevel(level string) *ConfigOption
- func (o *ConfigOption) WithLogStackTrace(ok bool) *ConfigOption
- func (o *ConfigOption) WithOutputPaths(s ...string) *ConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigOption ¶
ConfigOption Singleton Type
func NewConfig ¶
func NewConfig() *ConfigOption
func (*ConfigOption) WithErrorOutputPaths ¶
func (o *ConfigOption) WithErrorOutputPaths(s ...string) *ConfigOption
WithErrorOutputPaths +optional
func (*ConfigOption) WithLogCaller ¶
func (o *ConfigOption) WithLogCaller(ok bool) *ConfigOption
WithLogCaller +optional
func (*ConfigOption) WithLogEngine ¶
func (o *ConfigOption) WithLogEngine(logEngine string) *ConfigOption
func (*ConfigOption) WithLogEngineStd ¶
func (o *ConfigOption) WithLogEngineStd() *ConfigOption
WithLogEngineStd +optional
func (*ConfigOption) WithLogEngineSugar ¶
func (o *ConfigOption) WithLogEngineSugar() *ConfigOption
WithLogEngineSugar +optional
func (*ConfigOption) WithLogEngineZap ¶
func (o *ConfigOption) WithLogEngineZap() *ConfigOption
WithLogEngineZap +optional
func (*ConfigOption) WithLogLevel ¶
func (o *ConfigOption) WithLogLevel(level string) *ConfigOption
WithLogLevel +required
func (*ConfigOption) WithLogStackTrace ¶
func (o *ConfigOption) WithLogStackTrace(ok bool) *ConfigOption
WithLogStackTrace +optional
func (*ConfigOption) WithOutputPaths ¶
func (o *ConfigOption) WithOutputPaths(s ...string) *ConfigOption
WithOutputPaths +required
Click to show internal directories.
Click to hide internal directories.