clog

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package clog provides a logging interface for cayley packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...any)

Errorf logs error level messages.

func Fatalf

func Fatalf(format string, args ...any)

Fatalf logs fatal messages and terminates the program.

func Infof

func Infof(format string, args ...any)

Infof logs information level messages.

func SetLogger

func SetLogger(l Logger)

SetLogger set the clog logging implementation.

func SetV

func SetV(level int)

SetV sets the clog verbosity level.

func V

func V(level int) bool

V returns whether the current clog verbosity is above the specified level.

func Warningf

func Warningf(format string, args ...any)

Warningf logs warning level messages.

Types

type Logger

type Logger interface {
	Infof(format string, args ...any)
	Warningf(format string, args ...any)
	Errorf(format string, args ...any)
	Fatalf(format string, args ...any)
	V(int) bool
	SetV(level int)
}

Logger is the clog logging interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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