log

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package log 已弃用

Deprecated: 请使用 github.com/go-admin-team/go-admin-core/observe/audit 替代。 本包将在 v2.0.0 版本中移除。

迁移指南:

旧导入: import "github.com/go-admin-team/go-admin-core/observability/audit"
新导入: import "github.com/go-admin-team/go-admin-core/observe/audit"

Index

Constants

This section is empty.

Variables

View Source
var (
	// Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.DefaultSize 替代
	DefaultSize = newaudit.DefaultSize
	// Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.DefaultFormat 替代
	DefaultFormat = newaudit.DefaultFormat
)

Functions

func JSONFormat deprecated

func JSONFormat(r Record) string

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.JSONFormat 替代

func TextFormat deprecated

func TextFormat(r Record) string

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.TextFormat 替代

Types

type FormatFunc deprecated

type FormatFunc = newaudit.FormatFunc

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.FormatFunc 替代

type Log deprecated

type Log = newaudit.Log

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Log 替代

type Option deprecated

type Option = newaudit.Option

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Option 替代

func Format deprecated

func Format(f FormatFunc) Option

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Format 替代

func Name deprecated

func Name(n string) Option

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Name 替代

func Size deprecated

func Size(s int) Option

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Size 替代

type Options deprecated

type Options = newaudit.Options

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Options 替代

type ReadOption deprecated

type ReadOption = newaudit.ReadOption

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.ReadOption 替代

func Count deprecated

func Count(c int) ReadOption

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Count 替代

func Since deprecated

func Since(s time.Time) ReadOption

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Since 替代

type ReadOptions deprecated

type ReadOptions = newaudit.ReadOptions

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.ReadOptions 替代

type Record deprecated

type Record = newaudit.Record

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Record 替代

type Stream deprecated

type Stream = newaudit.Stream

Deprecated: 使用 github.com/go-admin-team/go-admin-core/observe/audit.Stream 替代

Jump to

Keyboard shortcuts

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