logging

package
v0.0.0-...-bb56650 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package logging provides logging helpers.

Index

Constants

This section is empty.

Variables

View Source
var RecentEntries = NewCircularBuffer(1024)

RecentEntries implements zap logging entries interception and stores the last 1024 entries in circular buffer in memory.

Functions

func NewCircularBuffer

func NewCircularBuffer(size int64) *circularBuffer

NewCircularBuffer creates a circular buffer for log entries in memory.

func Setup

func Setup(level zapcore.Level, encoding, uuid string)

Setup initializes logging with a given level.

func SetupWithLogger

func SetupWithLogger(logger *zap.Logger)

SetupWithLogger initializes logging with a given logger and its level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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