log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config{}

Init the struct of config and make public

View Source
var LogOpts = customLogMessage{}

The customlog helper for the customLogMessage struct

Functions

func Error

func Error(msg string)

Make a log to the terminal and the file with Error level

func Fatal

func Fatal(msg string)

Make a log to the terminal and the file with Fatal level

func GetLogPath

func GetLogPath() (string, error)

Make the util function for get the log file path

func Info

func Info(msg string)

Make a log to the terminal and the file with Info level

func Init

func Init() error

Start the app creating the base empty log file configurated

func Warning

func Warning(msg string)

Make a log to the terminal and the file with Warning level

Types

This section is empty.

Jump to

Keyboard shortcuts

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