serverLog

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const CHAN_BUFFER = 15
View Source
const LOG_BUF_SIZE = 80

Variables

This section is empty.

Functions

func NewLogMan

func NewLogMan(filename string, dashFile *os.File) *logMan

Types

type Logger

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

func NewLogger

func NewLogger(accLogFilename, errLogFilename string) *Logger

func (*Logger) CanLogAccess

func (l *Logger) CanLogAccess() bool

func (*Logger) CanLogError

func (l *Logger) CanLogError() bool

func (*Logger) Close

func (l *Logger) Close()

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)

func (*Logger) Open

func (l *Logger) Open() (errors []error)

func (*Logger) ReOpen

func (l *Logger) ReOpen() (errors []error)

Jump to

Keyboard shortcuts

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