Documentation
¶
Overview ¶
Custom logger for gotrace
Index ¶
- Variables
- func DecreaseIndent()
- func Format(args ...interface{}) string
- func GetPidPpid() (int, int)
- func GetRoutineIds() (currentId int64, parrentId uint64)
- func IncreaseAndGetIndent() string
- func Now() time.Time
- func Setup(output, prefix string, size int, enableByDefault bool, toggleSignalNum int) int
- func Since(t time.Time) time.Duration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( L *log.Logger Enable atomic.Bool )
counter to mark each call so that entry and exit points can be correlated
Functions ¶
func DecreaseIndent ¶
func DecreaseIndent()
func Format ¶
func Format(args ...interface{}) string
Format N number of arguments for logging, and limit the length of each formatted arg.
func GetRoutineIds ¶
Return current and parent goroutine id in string format
func IncreaseAndGetIndent ¶
func IncreaseAndGetIndent() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.