rlog

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package rlog provides a global logger for rmng. It wraps utils.Rlog and, in Lambda, upgrades the log level from SSM Parameter Store so that configuration persists across CDK deploys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx(ctx context.Context) *zerolog.Logger

Ctx returns the Logger associated with the ctx. If ctx is nil or has no logger, the DefaultContextLogger (global) is returned.

func Debug

func Debug(ctx context.Context) *zerolog.Event

func Err

func Err(ctx context.Context, err error) *zerolog.Event

func Error

func Error(ctx context.Context) *zerolog.Event

func Fatal

func Fatal(ctx context.Context) *zerolog.Event

func Hook

func Hook(h zerolog.Hook) zerolog.Logger

Hook returns a logger with the h Hook.

func Info

func Info(ctx context.Context) *zerolog.Event

func Level

func Level(level zerolog.Level) zerolog.Logger

Level creates a child logger with the minimum accepted level set to level.

func Log

func Log(ctx context.Context) *zerolog.Event

func Output

func Output(w io.Writer) zerolog.Logger

Output duplicates the global logger and sets w as its output.

func Panic

func Panic(ctx context.Context) *zerolog.Event

func Print

func Print(ctx context.Context, v ...interface{})

func Printf

func Printf(ctx context.Context, format string, v ...interface{})

func Sample

func Sample(s zerolog.Sampler) zerolog.Logger

Sample returns a logger with the s sampler.

func Trace

func Trace(ctx context.Context) *zerolog.Event

func Warn

func Warn(ctx context.Context) *zerolog.Event

func With

func With() zerolog.Context

With creates a child logger with the field added to its context.

func WithLevel

func WithLevel(ctx context.Context, level zerolog.Level) *zerolog.Event

Types

This section is empty.

Jump to

Keyboard shortcuts

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