Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefalutLogPath = "app.log"
)
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(opts ...Option) *lumberjack.Logger
func NewZapEncoderConfig ¶
Types ¶
type LumberjackConfig ¶
type LumberjackConfig struct {
// contains filtered or unexported fields
}
func DefaulutLumberjackConfig ¶
func DefaulutLumberjackConfig() *LumberjackConfig
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithLumberjackCompress ¶
func WithLumberjackFilename ¶
func WithLumberjackLocalTime ¶
func WithLumberjackMaxAge ¶
func WithLumberjackMaxSize ¶
Click to show internal directories.
Click to hide internal directories.