logger

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 0 Imported by: 0

README

Logger

logger 包定义了基础的日志级别类型。

内容

LogLevel

定义了日志级别字符串类型:

  • Info:信息(info
  • Error:错误(error
  • Success:成功(success
使用示例
import "github.com/fireflycore/go-micro/logger"

func Log(level logger.LogLevel, msg string) {
	_ = level
	_ = msg
}

Documentation

Overview

Package logger 定义 go-micro 的基础日志级别类型。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel string

LogLevel 表示日志级别。

const (
	// Info 表示信息级别日志。
	Info LogLevel = "info"
	// Error 表示错误级别日志。
	Error LogLevel = "error"
	// Success 表示成功级别日志。
	Success LogLevel = "success"
)

Jump to

Keyboard shortcuts

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