Documentation ¶
Index ¶
- func Body() string
- func DumpRequest(req *http.Request, body bool) string
- func DumpResponse(resp *http.Response, body bool) string
- func Error(err any) bool
- func Error2(_ any, err error) bool
- func Hex[T constraints.Integer | []byte | *bytes.Buffer](title string, msg T) string
- func HexDump(title string, b []byte)
- func HexInteger[T constraints.Integer](msg T) string
- func Info(title string, msg ...any)
- func IsAndroid() bool
- func IsLinux() bool
- func IsWindows() bool
- func Json(title string, msg ...any)
- func MarshalJson(title string, msg any)
- func Message() string
- func Reason() (reason string)
- func Request(Request *http.Request, body bool)
- func Response(Response *http.Response, body bool)
- func SetDebug(debug bool)
- func Struct(msg any)
- func Success(title string, msg ...any)
- func Trace(title string, msg ...any)
- func True(b bool)
- func TruncateLogFile()
- func Warning(title string, msg ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
func Body() string
Body log包不能依赖任何包,目前的引用逻辑是这样的: stream -->safeType-->log safeType包单独提出来以便后续的更多封装调用它,比如文本编辑器等所有输入类型的控件 widget -->safeType-->log 文本编辑器设置数据借safeType支持了更多类似的设置支持 safeType -->log
func HexInteger ¶
func HexInteger[T constraints.Integer](msg T) string
func MarshalJson ¶
func TruncateLogFile ¶
func TruncateLogFile()
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.