rlog

package
v1.57.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MPL-2.0 Imports: 1 Imported by: 5 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ...any)

Debug logs a debug-level message. The variadic key-value pairs are treated as they are in With.

func Error

func Error(msg string, keysAndValues ...any)

Error logs an error-level message. The variadic key-value pairs are treated as they are in With.

func Info

func Info(msg string, keysAndValues ...any)

Info logs an info-level message. The variadic key-value pairs are treated as they are in With.

func Warn added in v1.9.3

func Warn(msg string, keysAndValues ...any)

Warn logs a warn-level message. The variadic key-value pairs are treated as they are in With.

Types

type Ctx

type Ctx struct {
	// contains filtered or unexported fields
}

Ctx holds additional logging context for use with the Infoc and family of logging functions.

func With

func With(keysAndValues ...any) (_ 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

func (Ctx) Debug(msg string, keysAndValues ...any)

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

func (Ctx) Error(msg string, keysAndValues ...any)

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.

func (Ctx) Info

func (Ctx) Info(msg string, keysAndValues ...any)

Info logs an info-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) Warn added in v1.9.3

func (Ctx) Warn(msg string, keysAndValues ...any)

Warn logs a warn-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) With

func (Ctx) With(keysAndValues ...any) (_ Ctx)

With creates a new logging context that inherits the context from the original ctx and adds additional context on top. The original ctx is not affected.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL