file

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg ...*Config) transport.Transport

Types

type Config

type Config struct {
	FilePath string
	//
	File *os.File
	// Level specify the min level.
	Level string
	// Extact means only the specify level to write
	// Which is used for custom access, error, debug log.
	Exact bool
}

type File

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

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

func (*File) WriteWithLevel added in v1.4.3

func (f *File) WriteWithLevel(p []byte, level string) (n int, err error)

Jump to

Keyboard shortcuts

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