extlogrus

package
v0.0.0-...-aed2785 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	options *LoggerOptions,
) dinfra.Logger

Types

type LogLevel

type LogLevel string
const (
	Trace LogLevel = "trace"
	Debug LogLevel = "debug"
	Info  LogLevel = "info"
	Warn  LogLevel = "warn"
	Fatal LogLevel = "fatal"
)

type LoggerOptions

type LoggerOptions struct {
	MinLevel LogLevel
	File     *RotateFileOptions
}

func NewDefaultOptions

func NewDefaultOptions() *LoggerOptions

type RotateFileOptions

type RotateFileOptions struct {
	Filepath   string
	MaxSize    *uint64
	BackupNum  *uint
	BackupTime *uint
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL