log

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context) error

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(ctx context.Context) error

func (*LogServiceProvider) SetApplication added in v1.1.0

func (i *LogServiceProvider) SetApplication(app foundation.Application)

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