logs

package
v0.0.0-...-0e108c5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogsDirectory

func CheckLogsDirectory()

CheckLogsDirectory will check if 'logs' directory exist, if you don't, it will crete the directory

func NewLogFile

func NewLogFile(loglevel string) *os.File

NewLogFile make new log file

func WriteLogs

func WriteLogs(level string, content string, console bool)

WriteLogs is a function that writes any log to the application file. All you have to do is to fill in the code, which corresponds to ctx.StatusCode(XXX), and the content, in string format, which corresponds to the text added to the inserted log line. The format of the logs used is the following: date format: dd/mm/yyyy INFO/WARN/ERR/DBUG 02/01/2006 15:04:05 Content for log

Types

This section is empty.

Jump to

Keyboard shortcuts

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