logging API

logging

package

API reference for the logging package.

F
function

init

cmd/rfw/logging/logging.go:15-17
func init()

{
	Log = logger.New()
}
F
function

F

F builds a structured log field.

Parameters

key
string
value
any

Returns

cmd/rfw/logging/logging.go:20-22
func F(key string, value any) logger.Field

{
	return logger.Field{Key: key, Value: value}
}
S
struct

StoreLogAdapter

StoreLogAdapter adapts the CLI logger to state.Logger.

cmd/rfw/logging/logging.go:25-25
type StoreLogAdapter struct

Methods

Printf
Method

Printf writes a formatted debug message.

Parameters

format string
args ...any
func (StoreLogAdapter) Printf(format string, args ...any)
{
	Log.Debug(fmt.Sprintf(format, args...))
}