userlogger

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserLogger

type UserLogger struct {
	LogAppId atomic.Bool
	// contains filtered or unexported fields
}

func NewUserLogger

func NewUserLogger(enabled bool, logAppId bool, size int) *UserLogger

func (*UserLogger) AfterHandlerSelection added in v1.0.7

func (s *UserLogger) AfterHandlerSelection(ctx context.Context, info *session.Info, rw any,
	handler i.Outbound) (context.Context, any, error)

func (*UserLogger) Close

func (s *UserLogger) Close() error

func (*UserLogger) FlowSessionEnd added in v1.1.0

func (s *UserLogger) FlowSessionEnd(ctx context.Context, info *session.Info, err error)

func (*UserLogger) LogError

func (s *UserLogger) LogError(err error)

func (*UserLogger) LogReject

func (s *UserLogger) LogReject(info *session.Info, reason string)

func (*UserLogger) LogRoute

func (s *UserLogger) LogRoute(info *session.Info, tag string)

func (*UserLogger) OnFallback added in v1.1.0

func (s *UserLogger) OnFallback(info *session.Info, previous, tag string)

func (*UserLogger) PacketConnSessionEnd added in v1.1.0

func (s *UserLogger) PacketConnSessionEnd(ctx context.Context, info *session.Info, err error)

func (*UserLogger) ReadLog

func (s *UserLogger) ReadLog(ctx context.Context, slice []*vx.UserLogMessage) (int, error)

func (*UserLogger) SetDns

func (s *UserLogger) SetDns(dnsConn ipToDomain)

func (*UserLogger) SetEnabled

func (s *UserLogger) SetEnabled(enabled bool)

func (*UserLogger) SetLogRealtimeUsage added in v1.1.0

func (s *UserLogger) SetLogRealtimeUsage(enabled bool)

func (*UserLogger) SetLogSessionEnd added in v1.1.0

func (s *UserLogger) SetLogSessionEnd(enabled bool)

Jump to

Keyboard shortcuts

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