console

package
v0.0.0-...-f288654 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package console provides logging functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes an open log file.

func Log

func Log(format string, args ...interface{})

Log writes a log line to the log file. A timestamp and a newline is automatically added. If the log file isn't open, nothing is done.

func Open

func Open(logfile string) (err error)

Open opens a log file for writing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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