logging

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logging handles log helper

Index

Constants

View Source
const (
	// BuildCategory indicates outputs for build steps
	BuildCategory = "build"
	// FetchCategory is for resource fetching/downloading
	FetchCategory = "fetch"
	// ConfigCategory is for anything related to config loading/parsing
	ConfigCategory = "config"
	// SelfCategory are internal/self messages
	SelfCategory = "internal"
	// IndexCategory are for index operations
	IndexCategory = "index"
	// ProcessCategory are for (overall) processing steps
	ProcessCategory = "process"
	// ExtractCategory are for extraction items
	ExtractCategory = "extract"
	// FilteringCategory are for fetch-filter retrievals
	FilteringCategory = "filtering"
	// GitHubCategory are for github-based logging needs
	GitHubCategory = "github"
)

Variables

This section is empty.

Functions

func Append

func Append(logFile, msg string, parts ...any) error

Append handles simple log writing

func Rotate

func Rotate(logFile string, inSize int64, callback func()) error

Rotate handles a very simple log rotation

Types

type Category

type Category string

Category are logging category definitions

Jump to

Keyboard shortcuts

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