log

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package log provides some adjustments to the standard logging = it is called on startup to optionally stop all logging. - use log.Fatal*(...) to ensure that this is always logged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...any)

Fatal logs to file (if enabled) and also to stderr

func Fatalf

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

Fatalf logs to file (if enabled) and also to stderr

func Fatalln

func Fatalln(v ...any)

Fatalln logs to file (if enabled) and also to stderr

func Printf

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

Printf provides the same interface as log.Printf

func Println

func Println(v ...any)

Println provides the same interface as log.Println

func SetupLogging

func SetupLogging(enable bool, logfile string)

SetupLogging adjusts the log package default logging based on enable. We turn off logging completely if enable == false and enable logging to a file otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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