Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatJSON Format = iota FormatCBOR FormatText FormatDebug PairFunctionName = "pair" EnterSuffix = "Enter" LeaveSuffix = "Leave" CallDepth = 5 )
Variables ¶
This section is empty.
Functions ¶
func ID ¶
func ID() uint64
ID generates a unique ID for function call tracking. Uses the default logger's counter for backward compatibility.
func IsCalledFrom ¶
IsCalledFrom returns true if the function call stack contains the search string.
Types ¶
type FuncCall ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
NewLogger creates a new Logger instance with the specified format. This allows for instance-based logging instead of relying on global state.
type TimedEvent ¶
Click to show internal directories.
Click to hide internal directories.