logger

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides structured logging capabilities for the sbomqs application using the Uber Zap logger library with context-aware logging support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *zap.Logger

FromContext retrieves logger from context.

func Init added in v2.0.3

func Init(debug bool)

func Sync added in v2.0.3

func Sync()

Sync flushes buffered logs.

func WithLogger

func WithLogger(ctx context.Context) context.Context

WithLogger attaches logger to context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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