kuttilog

package
v0.1.13-beta3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Loglevel

func Loglevel() int

Loglevel returns the current log level.

func Print

func Print(level int, v ...interface{})

Print prints to the log, if the level is <= current log level. Arguments are handled in the manner of fmt.Print.

func Printf

func Printf(level int, format string, v ...interface{})

Printf prints to the log, if the level is <= current log level. Arguments are handled in the manner of fmt.Printf.

func Println

func Println(level int, v ...interface{})

Println prints to the log, if the level is <= current log level. Arguments are handled in the manner of fmt.Println.

func SetPrefix

func SetPrefix(prefix string)

SetPrefix sets a log prefix

func Setloglevel

func Setloglevel(newlevel int)

Setloglevel sets the current log level.

func V

func V(level int) bool

V returns true if the specified level is between 0 and the current log level, false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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