Documentation ¶
Overview ¶
Package intlog provides internal logging for GoFrame development usage only.
Index ¶
- func Error(ctx context.Context, v ...interface{})
- func ErrorFunc(ctx context.Context, f func() string)
- func Errorf(ctx context.Context, format string, v ...interface{})
- func Print(ctx context.Context, v ...interface{})
- func PrintFunc(ctx context.Context, f func() string)
- func Printf(ctx context.Context, format string, v ...interface{})
- func SetEnabled(enabled bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error prints `v` with newline using fmt.Println. The parameter `v` can be multiple variables.
func ErrorFunc ¶ added in v0.1.9
ErrorFunc prints the output from function `f`. It only calls function `f` if debug mode is enabled.
func Print ¶
Print prints `v` with newline using fmt.Println. The parameter `v` can be multiple variables.
func PrintFunc ¶ added in v0.1.9
PrintFunc prints the output from function `f`. It only calls function `f` if debug mode is enabled.
func Printf ¶
Printf prints `v` with format `format` using fmt.Printf. The parameter `v` can be multiple variables.
func SetEnabled ¶
func SetEnabled(enabled bool)
SetEnabled enables/disables the internal logging manually. Note that this function is not concurrent safe, be aware of the DATA RACE.
Types ¶
This section is empty.