MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetPackageLogger

Function GetPackageLogger

internal/logger/logger.go:309–312  ·  view source on GitHub ↗

GetPackageLogger returns a logger for a specific package using the global cache directory This ensures all packages log to the same unified log file.

(packageName string)

Source from the content-addressed store, hash-verified

307// GetPackageLogger returns a logger for a specific package using the global cache directory
308// This ensures all packages log to the same unified log file.
309func GetPackageLogger(packageName string) interfaces.Logger {
310 // Reuse the already-initialized global logger to avoid scattering log files.
311 return GetGlobalLogger()
312}
313
314// GetPackageLoggerConcrete returns a concrete Logger instance for packages that need the specific type
315// This ensures all packages log to the same unified log file while maintaining type compatibility.

Callers 3

shell.goFile · 0.92
getScriptsLoggerFunction · 0.92
getScriptsLoggerFunction · 0.92

Calls 1

GetGlobalLoggerFunction · 0.85

Tested by

no test coverage detected