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, client version, and if the auth was public key based. Disconnect will log the remote address and connection duration.
It will use charmbracelet/log.StandardLog() by default.
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, client version, and if the auth was public key based. Disconnect will log the remote address and connection duration.
func StructuredMiddleware ¶ added in v1.4.0
func StructuredMiddleware() wish.Middleware
StructuredMiddleware provides basic connection logging in a structured form. Connects are logged with the remote address, invoked command, TERM setting, window dimensions, client version, and if the auth was public key based. Disconnect will log the remote address and connection duration.
It will use the charmbracelet/log.Default() and Info level by default.
func StructuredMiddlewareWithLogger ¶ added in v1.4.0
StructuredMiddlewareWithLogger provides basic connection logging in a structured form. Connects are logged with the remote address, invoked command, TERM setting, window dimensions, client version, and if the auth was public key based. Disconnect will log the remote address and connection duration.