jlog

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package jlog exposes Jelly's public logging API.

Index

Constants

View Source
const (
	DebugLevel = logging.DebugLevel
	InfoLevel  = logging.InfoLevel
	WarnLevel  = logging.WarnLevel
	ErrorLevel = logging.ErrorLevel

	DevelopmentMode = logging.DevelopmentMode
	ProductionMode  = logging.ProductionMode

	PrettyFormat  = logging.PrettyFormat
	CompactFormat = logging.CompactFormat
	JSONFormat    = logging.JSONFormat

	AutoColor     = logging.AutoColor
	EnabledColor  = logging.EnabledColor
	DisabledColor = logging.DisabledColor
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

func Error

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

func Fatal

func Fatal(msg string, args ...any)

func Info

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

func Init

func Init(cfg Config)

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

func Reset

func Reset()

func Warn

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

func WithExecutionContext

func WithExecutionContext(ctx context.Context, value ExecutionContext) context.Context

func WithRequestID

func WithRequestID(ctx context.Context, requestID string) context.Context

Types

type ColorMode

type ColorMode = logging.ColorMode

type Config

type Config = logging.Config

func DevelopmentConfig

func DevelopmentConfig() Config

func ProductionConfig

func ProductionConfig() Config

type Entry

type Entry = logging.Entry

type ExecutionContext

type ExecutionContext = logging.ExecutionContext

func ExecutionContextFromContext

func ExecutionContextFromContext(ctx context.Context) ExecutionContext

type Format

type Format = logging.Format

type Level

type Level = logging.Level

type Logger

type Logger = logging.Logger

func For

func For(component string) *Logger

type Mode

type Mode = logging.Mode

Jump to

Keyboard shortcuts

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