nginx

package
v1.0.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

logger.nginx 包,该包包含了bifrost.pkg.logger.nginx项目用于读取nginx日志的相关对象,及相关方法及函数 创建者: ClessLi 创建时间:2020-10-27 17:02:30

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLogsDirPath         = errors.New("logs dir is not exist or is not a directory")
	ErrLogBufferIsNotExist = errors.New("log buffer is not exist")
	ErrLogBufferIsExist    = errors.New("log buffer is exist")
	ErrLogIsLocked         = errors.New("log is locked")
	ErrLogIsUnlocked       = errors.New("log is unlocked")
	ErrUnknownLockError    = errors.New("unknown lock error")
)

Functions

This section is empty.

Types

type Log

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

TODO: nginx日志读取包

func NewLog

func NewLog() *Log

func (*Log) StartWatch

func (l *Log) StartWatch(logName, workspace string) (err error)

func (*Log) StopWatch

func (l *Log) StopWatch(logName string) error

func (*Log) Watch

func (l *Log) Watch(logName string) (logData []byte, err error)

Jump to

Keyboard shortcuts

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