Documentation ¶
Overview ¶
Package rlog provides a simple logging interface which is integrated with Encore's inbuilt distributed tracing.
For more information about logging inside Encore applications see https://encore.dev/docs/observability/logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, keysAndValues ...interface{})
Debug logs a debug-level message. The variadic key-value pairs are treated as they are in With.
Types ¶
type Ctx ¶
type Ctx struct{}
Ctx holds additional logging context for use with the Infoc and family of logging functions.
func With ¶
func With(keysAndValues ...interface{}) Ctx
With adds a variadic number of fields to the logging context. The keysAndValues must be pairs of string keys and arbitrary data.
func (Ctx) Debug ¶
Debug logs a debug-level message, merging the context from ctx with the additional context provided as key-value pairs. The variadic key-value pairs are treated as they are in With.
func (Ctx) Error ¶
Error logs an error-level message, merging the context from ctx with the additional context provided as key-value pairs. The variadic key-value pairs are treated as they are in With.