Migrate all log.Printf/Println calls across the codebase to use the new pkg/logging structured logging package. This provides consistent log formatting with levels, timestamps, and structured key-value fields. Files updated: - pkg/mining/manager.go, service.go, events.go, miner.go - pkg/mining/xmrig_start.go, ttminer_start.go - pkg/mining/syslog_unix.go, syslog_windows.go - pkg/database/hashrate.go - pkg/node/worker.go, transport.go, peer.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
356 B
Go
15 lines
356 B
Go
//go:build windows
|
|
|
|
package mining
|
|
|
|
import (
|
|
"github.com/Snider/Mining/pkg/logging"
|
|
)
|
|
|
|
// On Windows, syslog is not available. We'll use a dummy implementation
|
|
// that logs to the standard logger.
|
|
|
|
// logToSyslog logs a message to the standard logger, mimicking the syslog function's signature.
|
|
func logToSyslog(message string) {
|
|
logging.Info(message)
|
|
}
|