logging

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDownload

func AddDownload(file *models.File, r *http.Request, saveIp bool)

AddDownload adds a line to the logfile when a download was requested. Non-Blocking

func AddString

func AddString(text string)

AddString adds a line to the logfile including the current date. Non-Blocking

func GetLogPath added in v1.6.2

func GetLogPath() string

GetLogPath returns the relative path to the log file

func Init

func Init(filePath string)

Init sets the path where to write the log file to

Types

This section is empty.

Jump to

Keyboard shortcuts

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