out

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NoLogCharacter string = "🤫"

NoLogCharacter can be added to an output message to prevent that line from being saved to the log file.

Variables

This section is empty.

Functions

func GetLogFilename added in v0.3.3

func GetLogFilename() string

GetLogFilename returns the full filename of the log file

func Load

func Load(logDirectory string) error

Load sets log to output to 'debug.log' in the given directory

func Print

func Print(message string)

Print takes a given message and passes it to the outputter for printing whilst logging each line.

func PrintDontLog added in v0.3.0

func PrintDontLog(message string)

PrintDontLog takes a given message and *only* passes it to the outputter for printing.

func PrintTheBuffer

func PrintTheBuffer()

PrintTheBuffer is a method that wraps printing the buffer on the outputter.

func SetOutputToBuffer

func SetOutputToBuffer()

SetOutputToBuffer directs output to an internal buffer rather than printing to terminal. Use PrintTheBuffer to actually output and empty the buffer.

func SetOutputToTerminal

func SetOutputToTerminal()

SetOutputToTerminal directs output to the user's terminal, so it's printed immediately

Types

This section is empty.

Jump to

Keyboard shortcuts

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