logging

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLogger

type CommandLogger interface {
	Log(command string, fields ...zap.Field)
}

type FtpCommandLogger

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

func NewFtpCommandLogger

func NewFtpCommandLogger(config *config.Config) (*FtpCommandLogger, error)

func (*FtpCommandLogger) LogWithContext

func (l *FtpCommandLogger) LogWithContext(ctx ftpserver.ClientContext, command string, fields ...zap.Field)

func (*FtpCommandLogger) ShouldLog

func (l *FtpCommandLogger) ShouldLog(command string) bool

func (*FtpCommandLogger) WithContext

func (l *FtpCommandLogger) WithContext(context ftpserver.ClientContext) *contextBoundFtpCommandLogger

Jump to

Keyboard shortcuts

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