serverLog

package
v1.15.6-go1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 5 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.13.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)

Jump to

Keyboard shortcuts

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