sio

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sio provides logging functions with optional colorization.

Index

Constants

This section is empty.

Variables

View Source
var Output io.Writer = os.Stderr

Output is the writer to which all prompts, errors and messages go. This is set to standard error by default.

Functions

func ColorsEnabled added in v0.12.2

func ColorsEnabled() bool

ColorsEnabled returns if colored output is enabled

func Debugf

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

Debugf prints the supplied arguments to the standard writer, de-emphasized.

func Debugln

func Debugln(args ...interface{})

Debugln prints the supplied arguments to the standard writer, de-emphasized

func EnableColors

func EnableColors(flag bool)

EnableColors enables or disables colored output

func ErrorString added in v0.14.3

func ErrorString(s string) string

ErrorString returns a colorized string representing an error condition.

func Errorf

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

Errorf prints the supplied arguments to the standard writer with some indication that an error has occurred.

func Errorln

func Errorln(args ...interface{})

Errorln prints the supplied arguments to the standard writer with some indication that an error has occurred.

func Noticef

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

Noticef prints the supplied arguments in a way that they will be noticed. Use sparingly.

func Noticeln

func Noticeln(args ...interface{})

Noticeln prints the supplied arguments in a way that they will be noticed. Use sparingly.

func Printf

func Printf(format string, args ...interface{})

Printf prints the supplied arguments to the standard writer.

func Println

func Println(args ...interface{})

Println prints the supplied arguments to the standard writer

func Warnf

func Warnf(format string, args ...interface{})

Warnf prints the supplied arguments to the standard writer with some indication for a warning.

func Warnln

func Warnln(args ...interface{})

Warnln prints the supplied arguments to the standard writer with some indication for a warning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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