Documentation ¶
Index ¶
- func GetFactory() *logFactory
- func NewConsoleLogger(filePath string, level zapcore.Level, maxSize int, maxBackups int, maxAge int, ...) *zap.Logger
- func NewLogger(filePath string, level zapcore.Level, maxSize int, maxBackups int, maxAge int, ...) *zap.Logger
- type Level
- type Log
- type LogHandler
- type LogHook
- type LogOptions
- func (o *LogOptions) Compress(value bool) *LogOptions
- func (o *LogOptions) Debug(value bool) *LogOptions
- func (o *LogOptions) FileName(file string) *LogOptions
- func (o *LogOptions) FileSize(value int) *LogOptions
- func (o *LogOptions) Handler(value LogHandler) *LogOptions
- func (o *LogOptions) Hook(value LogHook) *LogOptions
- func (o *LogOptions) Json(value bool) *LogOptions
- func (o *LogOptions) MaxFileCount(value int) *LogOptions
- type Logger
- type LoggerCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFactory ¶
func GetFactory() *logFactory
func NewConsoleLogger ¶
Types ¶
type LogHandler ¶
type LogOptions ¶
type LogOptions struct {
// contains filtered or unexported fields
}
func (*LogOptions) Compress ¶
func (o *LogOptions) Compress(value bool) *LogOptions
func (*LogOptions) Debug ¶
func (o *LogOptions) Debug(value bool) *LogOptions
func (*LogOptions) FileName ¶
func (o *LogOptions) FileName(file string) *LogOptions
func (*LogOptions) FileSize ¶
func (o *LogOptions) FileSize(value int) *LogOptions
func (*LogOptions) Handler ¶
func (o *LogOptions) Handler(value LogHandler) *LogOptions
func (*LogOptions) Hook ¶
func (o *LogOptions) Hook(value LogHook) *LogOptions
func (*LogOptions) Json ¶
func (o *LogOptions) Json(value bool) *LogOptions
func (*LogOptions) MaxFileCount ¶
func (o *LogOptions) MaxFileCount(value int) *LogOptions
type Logger ¶
type LoggerCreator ¶
type LoggerCreator interface {
Create(options *LogOptions) (Log, error)
}
Click to show internal directories.
Click to hide internal directories.