import ( "github.com.james-nesbitt.coach.log" ) func main() { logger := log.New() logger.Info("This is an info log message") logger.Warn("This is a warning log message") logger.Error("This is an error log message") }
import ( "github.com.james-nesbitt.coach.log" ) func main() { logger := log.New() logger.SetOutputFile("/var/log/app.log") logger.Info("This is an info log message written to file") }This code sets the logger to output logs to a file and writes an info log message to the file. Overall, the "github.com.james-nesbitt.coach.log" package library provides an easy-to-use logging utility for Go developers.