log_file

package module
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 14 Imported by: 0

README

log-file

log-filegithub.com/infrago/logfile 驱动

包定位

  • 类型:驱动
  • 作用:把 log 模块的统一接口落到 file 后端实现

快速接入

import (
    _ "github.com/infrago/log"
    _ "github.com/infrago/log-file"
)
[log]
driver = "file"

setting 专用配置项

配置位置:[log].setting

  • store
  • output
  • maxsize
  • slice
  • maxline
  • maxfiles
  • maxage
  • compress
  • close_timeout
  • flush_interval
  • cleanup_interval

说明

  • setting 仅对当前驱动生效,不同驱动键名可能不同
  • flush_interval 默认关闭,关闭时仍会强制 flush;cleanup_interval 默认关闭,关闭时仍会强制清理
  • 连接失败时优先核对 setting 中 host/port/认证/超时等参数

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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