serverLog

package
v1.19.1-go1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuffer added in v1.15.1

func NewBuffer(cap int) []byte

Types

type FileMan added in v1.13.0

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

func NewFileMan added in v1.13.0

func NewFileMan() *FileMan

func (*FileMan) Close added in v1.13.0

func (fMan *FileMan) Close()

func (*FileMan) NewLogger added in v1.13.0

func (fMan *FileMan) NewLogger(accLogFilename, errLogFilename string) (*Logger, []error)

func (*FileMan) ReOpen added in v1.19.0

func (fMan *FileMan) ReOpen() []error

type Logger

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

func (*Logger) CanLogAccess

func (l *Logger) CanLogAccess() bool

func (*Logger) CanLogError

func (l *Logger) CanLogError() bool

func (*Logger) LogAccess

func (l *Logger) LogAccess(payload []byte)

func (*Logger) LogAccessString

func (l *Logger) LogAccessString(payload string)

func (*Logger) LogError

func (l *Logger) LogError(payload []byte)

func (*Logger) LogErrorString

func (l *Logger) LogErrorString(payload string)

func (*Logger) LogErrors added in v1.2.0

func (l *Logger) LogErrors(errors ...error)

type Man added in v1.19.0

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

func NewMan added in v1.19.0

func NewMan() *Man

func (*Man) CloseFiles added in v1.19.0

func (man *Man) CloseFiles()

func (*Man) NewLogger added in v1.19.0

func (man *Man) NewLogger(accessLog, errorLog string) (*Logger, []error)

func (*Man) ReOpenFiles added in v1.19.0

func (man *Man) ReOpenFiles() []error

type WriterMan added in v1.19.0

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

func NewWriterMan added in v1.19.0

func NewWriterMan() *WriterMan

func (*WriterMan) NewLogger added in v1.19.0

func (wMan *WriterMan) NewLogger(accLogWriter, errLogWriter io.Writer) (*Logger, []error)

Jump to

Keyboard shortcuts

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