tlog

package
v0.0.0-...-4fbf60d Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tlog implements logging utilities for boilr

Index

Constants

View Source
const (
	// DebugMark character indicates debug message.
	DebugMark = "☹"

	// CheckMark character indicates success message.
	CheckMark = "✔"

	// InfoMark character indicates information message.
	InfoMark = "i"

	// WarnMark character indicates warning message.
	WarnMark = "!"

	// ErrorMark character indicates error message.
	ErrorMark = "✘"

	// QuestionMark character indicates prompt message.
	QuestionMark = "?"
)

TODO default to ASCII if Unicode is not supported

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug logs the given message as a debug message.

func Error

func Error(msg string)

Error logs the given message as a error message.

func Fatal

func Fatal(msg string)

Fatal logs the given message as a fatal message.

func Info

func Info(msg string)

Info logs the given message as a info message.

func Prompt

func Prompt(msg string, defval interface{})

Prompt outputs the given message as a question along with a default value.

func Success

func Success(msg string)

Success logs the given message as a success message.

func Warn

func Warn(msg string)

Warn logs the given message as a warn message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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