sio

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sio provides logging functions with optional colorization.

Index

Constants

This section is empty.

Variables

View Source
var EnableColors = true

EnableColors enables colorized output when set. True by default.

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 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 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