Documentation ¶
Index ¶
- func Initialize(opts ...Option) error
- func New() *logrus.Logger
- func NewWithModule(name string) *logrus.Entry
- func ParseLevel(level string) logrus.Level
- type Option
- func WithFileName(fileName string) Option
- func WithFilePath(filePath string) Option
- func WithMaxAge(maxAge time.Duration) Option
- func WithMaxSize(maxSize int64) Option
- func WithPersist(persist bool) Option
- func WithReportCaller(reportCaller bool) Option
- func WithRotationTime(rotationTime time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize initializes a logger instance with given level, filepath, filename, maxSize, maxAge and rotationTime.
func NewWithModule ¶
func ParseLevel ¶
Types ¶
type Option ¶
type Option func(*config)
func WithFileName ¶
func WithFilePath ¶
func WithMaxAge ¶
func WithMaxSize ¶
func WithPersist ¶
func WithReportCaller ¶
func WithRotationTime ¶
Click to show internal directories.
Click to hide internal directories.