accesslog

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package accesslog provides access log for banyandb.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	// Write writes the access log.
	Write(req proto.Message) error
	// Close closes the access log.
	Close() error
}

Log is the interface for access log.

func NewFileLog

func NewFileLog(root, template string, interval time.Duration, log *logger.Logger) (Log, error)

NewFileLog creates a new file access log.

Jump to

Keyboard shortcuts

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