olog

package
v0.231.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package olog provides a wrapper around the standard log package. It is used for all logging in the project. By default, the output is discarded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *log.Logger

Default returns the default logger. If no logger has been set, it returns a no-op logger that discards all log messages.

func Fatal

func Fatal(v ...any)

Fatal is a proxy for log.Fatal.

func Fatalf

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

Fatalf is a proxy for log.Fatalf.

func Fatalln

func Fatalln(v ...any)

Fatalln is a proxy for log.Fatalln.

func Flags

func Flags() int

Flags is a proxy for log.Flags.

func Output

func Output(calldepth int, s string) error

Output is a proxy for log.Output.

func Panic

func Panic(v ...any)

Panic is a proxy for log.Panic.

func Panicf

func Panicf(format string, v ...any)

Panicf is a proxy for log.Panicf.

func Panicln

func Panicln(v ...any)

Panicln is a proxy for log.Panicln.

func Prefix

func Prefix() string

Prefix is a proxy for log.Prefix.

func Print

func Print(v ...any)

Print is a proxy for log.Print.

func Printf

func Printf(format string, v ...any)

Printf is a proxy for log.Printf.

func Println

func Println(v ...any)

Println is a proxy for log.Println.

func SetDefault

func SetDefault(l *log.Logger)

SetDefault sets the default logger to the provided logger. When nil is passed, the default logger is set to a no-op logger that discards all log messages.

func SetFlags

func SetFlags(flag int)

SetFlags is a proxy for log.SetFlags.

func SetOutput

func SetOutput(w io.Writer)

SetOutput is a proxy for log.SetOutput.

func SetPrefix

func SetPrefix(prefix string)

SetPrefix is a proxy for log.SetPrefix.

func Writer

func Writer() io.Writer

Writer is a proxy for log.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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