log

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package log writes a message to a log file or console.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, shouldExit bool)

CheckError checks if there is an error, logs it and exits if requested.

func Write

func Write(message string)

Write writes a message to a log file or console if no log specified.

func WriteAndExit

func WriteAndExit(message string)

WriteAndExit logs a message and exits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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