Documentation ¶
Index ¶
- Variables
- func GetLocalIPs() []string
- func NewFileWriter(fileName string) (io.Writer, error)
- func NewLogger(tags map[string]string, writers ...io.Writer) zerolog.Logger
- func NewRollingWriter(fileName string, maxSize, maxAge, maxBackups int, compress, localtime bool) io.Writer
- func NewStderrWriter() io.Writer
- func NewStdoutWriter() io.Writer
- type CodeError
- type FieldError
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName string
Functions ¶
func GetLocalIPs ¶ added in v0.1.0
func GetLocalIPs() []string
func NewRollingWriter ¶ added in v0.1.0
func NewRollingWriter(fileName string, maxSize, maxAge, maxBackups int, compress, localtime bool) io.Writer
maxSize:unit megabytes, maxAge:unit days
func NewStderrWriter ¶ added in v0.1.0
func NewStdoutWriter ¶ added in v0.1.0
Types ¶
type CodeError ¶
func NewCodeError ¶
type FieldError ¶
func NewFieldError ¶
func NewFieldError(fieldErrors map[string]string) *FieldError
func NewFieldErrorKV ¶
func NewFieldErrorKV(kvs ...string) *FieldError
Click to show internal directories.
Click to hide internal directories.