logging

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 156

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(l 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