cblog

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package cblog provides a channel based logger.

Index

Constants

View Source
const LogOutputBuffer = 1024

LogOutputBuffer is the size of the channel buffer used for logging.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*cblog.Logger
	// contains filtered or unexported fields
}

Logger is the logging object.

func New

func New() *Logger

New creates a new Logger.

func (*Logger) SetLogger

func (l *Logger) SetLogger(handlerType string, cfg map[string]any)

SetLogger sets the Logger object output.

Notes

Bugs

  • SetLogger should be replaced with SetOutput in order to become stdlib compatible

Jump to

Keyboard shortcuts

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