logging

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer()

func StopServer

func StopServer()

Types

type CTopLogger

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

CTopLogger wraps slog.Logger with convenience methods matching the previous op/go-logging API, plus status message support.

var (
	Log *CTopLogger
)

func Init

func Init() *CTopLogger

func (*CTopLogger) Debugf added in v0.8.0

func (c *CTopLogger) Debugf(format string, args ...interface{})

func (*CTopLogger) Errorf added in v0.8.0

func (c *CTopLogger) Errorf(format string, args ...interface{})

func (*CTopLogger) Exit

func (c *CTopLogger) Exit()

func (*CTopLogger) FlushStatus added in v0.7.1

func (c *CTopLogger) FlushStatus() chan statusMsg

func (*CTopLogger) Info added in v0.8.0

func (c *CTopLogger) Info(msg string)

func (*CTopLogger) Infof added in v0.8.0

func (c *CTopLogger) Infof(format string, args ...interface{})

func (*CTopLogger) IsDebugEnabled added in v0.8.0

func (c *CTopLogger) IsDebugEnabled() bool

func (*CTopLogger) Notice added in v0.8.0

func (c *CTopLogger) Notice(msg string)

func (*CTopLogger) Noticef added in v0.8.0

func (c *CTopLogger) Noticef(format string, args ...interface{})

func (*CTopLogger) Status added in v0.7.1

func (c *CTopLogger) Status(s string)

func (*CTopLogger) StatusErr added in v0.7.1

func (c *CTopLogger) StatusErr(err error)

func (*CTopLogger) StatusQueued added in v0.7.1

func (c *CTopLogger) StatusQueued() bool

func (*CTopLogger) Statusf added in v0.7.1

func (c *CTopLogger) Statusf(s string, a ...interface{})

func (*CTopLogger) Warningf added in v0.8.0

func (c *CTopLogger) Warningf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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