intlog

package
v0.0.0-...-2910145 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package intlog 提供内部日志功能,仅用于 GoFrame 开发使用。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx context.Context, v ...interface{})

Error 使用 fmt.Println 打印 `v`(并附带换行)。参数 `v` 可以是多个变量。

func ErrorFunc

func ErrorFunc(ctx context.Context, f func() string)

ErrorFunc 用于打印函数 `f` 的输出结果。 只有在调试模式开启的情况下,才会调用函数 `f`。

func Errorf

func Errorf(ctx context.Context, format string, v ...interface{})

Errorf使用fmt.Printf格式化方式打印变量v,格式字符串为format。

func Print

func Print(ctx context.Context, v ...interface{})

Print 通过 fmt.Println 打印 `v`(并附带换行)。参数 `v` 可以是多个变量。

func PrintFunc

func PrintFunc(ctx context.Context, f func() string)

PrintFunc 用于打印函数 `f` 的输出结果。 只有在调试模式开启时,才会调用函数 `f`。

func Printf

func Printf(ctx context.Context, format string, v ...interface{})

Printf 使用 fmt.Printf 格式化并打印 `v`。其中参数 `v` 可以是多个变量。 ```go Printf 函数通过 fmt.Printf 格式化输出 `v`。 注意,这里的 `v` 参数可以接受多个变量。

Types

This section is empty.

Jump to

Keyboard shortcuts

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