package
Version:
v0.0.0-...-93ef53b
Opens a new window with list of versions in this module.
Published: Mar 5, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package trace provides simple interfaces for timing applications
HCLog is a Logger that uses the go-hclog log package to output timer information.
func NewHCLog(logger hclog.Logger, level hclog.Level) HCLog
func (l HCLog) Print(args ...interface{})
Print writes timer information using the logger's Log function, with the configured level.
type Logger interface {
Print(args ...interface{})
}
Start a timer with the specified name.
func (t *Timer) Since(args ...interface{})
Since logs the time since the timer started. If present the optional args will be appended to the message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.