logger

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 24

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02 15:04:05"

TimeFormat - total time format

View Source
const TimeFormatDay = "2006-01-02"

TimeFormatDay - format of the day for timestamps

Variables

View Source
var Verbosity = 0

Verbosity - current logging verbosity level (optionally set)

Functions

func Dump

func Dump() string

Dump - dumps all logs into a formatted string

func DumpFile

func DumpFile(filePath string)

DumpFile - appends log dump log file

func FatalLog

func FatalLog(message ...string)

FatalLog - exits os after logging

func FatalLog0

func FatalLog0(message ...string)

FatalLog0 - exits os after logging

func Log

func Log(verbosity int, message ...string)

Log - handles adding logs

func MakeString

func MakeString(delimeter string, message ...string) string

MakeString - makes a string using golang string builder

func Retrieve

func Retrieve(filePath string) string

Retrieve - retrieves logs from given file

Types

This section is empty.

Jump to

Keyboard shortcuts

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