log

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 15 Imported by: 0

README

hecc-blot-log

Zap + lumberjack 本地日志与阿里云 SLS 远程日志,自动附加 traceId

安装

go get github.com/hecc-blot/hecc-blot-log

说明

本仓库是 Hecc-Blot 框架的一个子模块,按职责独立拆分、可单独引入。

完整文档、使用示例与路线图见框架主仓库(README / docs / example)。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(config *logConfig.Config) (logContract.ILog, error)

Types

type LogSvc

type LogSvc struct {
	// contains filtered or unexported fields
}

func (LogSvc) Debug

func (b LogSvc) Debug(ctx context.Context, msg string, fields ...interface{})

func (LogSvc) Error

func (b LogSvc) Error(ctx context.Context, msg string, fields ...interface{})

func (LogSvc) Info

func (b LogSvc) Info(ctx context.Context, msg string, fields ...interface{})

func (LogSvc) Warn

func (b LogSvc) Warn(ctx context.Context, msg string, fields ...interface{})

type SlsSvc

type SlsSvc struct {
	// contains filtered or unexported fields
}

func (*SlsSvc) Debug

func (s *SlsSvc) Debug(ctx context.Context, msg string, fields ...interface{})

func (*SlsSvc) Error

func (s *SlsSvc) Error(ctx context.Context, msg string, fields ...interface{})

func (*SlsSvc) Info

func (s *SlsSvc) Info(ctx context.Context, msg string, fields ...interface{})

func (*SlsSvc) Warn

func (s *SlsSvc) Warn(ctx context.Context, msg string, fields ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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