log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileImpl

type FileImpl struct {
	// contains filtered or unexported fields
}

func NewFileImpl

func NewFileImpl(options *FileImplOptions) *FileImpl

func (*FileImpl) Alert

func (i *FileImpl) Alert(content ...any)

func (*FileImpl) Critical

func (i *FileImpl) Critical(content ...any)

func (*FileImpl) Debug

func (i *FileImpl) Debug(content ...any)

func (*FileImpl) Emergency

func (i *FileImpl) Emergency(content ...any)

func (*FileImpl) Error

func (i *FileImpl) Error(content ...any)

func (*FileImpl) Info

func (i *FileImpl) Info(content ...any)

func (*FileImpl) Notice

func (i *FileImpl) Notice(content ...any)

func (*FileImpl) Warning

func (i *FileImpl) Warning(content ...any)

func (*FileImpl) WithContext

func (i *FileImpl) WithContext(ctx context.Context) log.Logger

type FileImplOptions

type FileImplOptions struct {
	StorePath  string
	MaxSize    int
	MaxBackups int
	MaxAge     int
	Compress   bool
	Level      zapcore.Level
	FileName   string
	// contains filtered or unexported fields
}

type LogServiceProvider

type LogServiceProvider struct {
	// contains filtered or unexported fields
}

func (*LogServiceProvider) Boot

func (i *LogServiceProvider) Boot()

func (*LogServiceProvider) Conf

func (i *LogServiceProvider) Conf() map[string]string

func (*LogServiceProvider) Description

func (i *LogServiceProvider) Description() string

func (*LogServiceProvider) Register

func (i *LogServiceProvider) Register()

type LoggerFactory

type LoggerFactory struct {
	// contains filtered or unexported fields
}

type Options

type Options struct {
	Level      int  `json:"level"`
	MaxSize    int  `json:"max-size"`
	MaxBackups int  `json:"max-backups"`
	MaxAge     int  `json:"max-age"`
	Compress   bool `json:"compress"`
}

Source Files

  • file_impl.go
  • log_service_provider.go
  • logger_factroy.go

Jump to

Keyboard shortcuts

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