log

package
v0.0.0-...-854ad97 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package log handles logging for the client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the log file.

func Init

func Init() error

Init initialises the log file and logger.

func Write

func Write(fmtstr string, args ...interface{})

Write writes a string to the log file. Nothing happens if the log file is not initialised (see LogInit). Depending on the number of arguments passed, Write either behaves as a Print or a Printf. The first argument must always be a string. If more than one argument is given, the function behaves as Printf.

func WriteError

func WriteError(err error)

WriteError prints err to the logfile and returns, effectively ignoring the error. No logging is performed if err == nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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