access

package
v7.0.0-...-8ac4b21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package access 记录接口访问日志

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l func(string), format string) web.Plugin

New 记录 API 访问日志

l 输出方法; format 表示记录的格式,接受三个参数,分别为状态码、请求方法和请求地址, 默认使用 "[%d] %s\t%s\n",可以使用 fmt.Sprintf 的顺序标记作调整;

Types

This section is empty.

Jump to

Keyboard shortcuts

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