logging

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 4 Imported by: 121

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() wish.Middleware

Middleware provides basic connection logging. Connects are logged with the remote address, invoked command, TERM setting, window dimensions and if the auth was public key based. Disconnect will log the remote address and connection duration.

The logger is set to the std default logger.

func MiddlewareWithLogger added in v0.6.0

func MiddlewareWithLogger(logger Logger) wish.Middleware

MiddlewareWithLogger provides basic connection logging. Connects are logged with the remote address, invoked command, TERM setting, window dimensions and if the auth was public key based. Disconnect will log the remote address and connection duration.

Types

type Logger added in v0.6.0

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger is the interface that wraps the basic Log method.

Jump to

Keyboard shortcuts

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