config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCrawlComplete

func LogCrawlComplete(url string, totalPages int, errors int)

LogCrawlComplete logs the completion of a crawl operation

func LogCrawlError

func LogCrawlError(url string, depth int, err error)

LogCrawlError logs crawl errors with structured context

func LogCrawlProgress

func LogCrawlProgress(url string, depth int, statusCode int)

LogCrawlProgress logs crawl progress information

func LogCrawlStart

func LogCrawlStart(url string, maxDepth int, concurrent int, userAgent string)

LogCrawlStart logs the start of a crawl operation with structured data

func LogDebug

func LogDebug(message string, args ...any)

LogDebug logs debug information (for future development use)

func LogError

func LogError(message string, args ...any)

LogError logs error messages

func LogInfo

func LogInfo(message string, args ...any)

LogInfo logs information messages

func LogWarn

func LogWarn(message string, args ...any)

LogWarn logs warning messages

Types

type LoggingConfig

type LoggingConfig struct {
	Level   slog.Level
	Verbose bool
}

LoggingConfig holds the configuration for the logging system

func NewLoggingConfig

func NewLoggingConfig(verbose bool) *LoggingConfig

NewLoggingConfig creates a new logging configuration

func (*LoggingConfig) SetupLogger

func (c *LoggingConfig) SetupLogger()

SetupLogger configures the global logger with the given configuration

Jump to

Keyboard shortcuts

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