Logging is an important part of every program. Logs are our eyes and history to what is happening inside the program as it runs. The standard library provides the log package to support the basic features of logging and the ability for you to extend and customize logging to fit your needs.
- Support for logging is already built into the standard library.
- The log package can be easily extended to meet your logging needs.
http://www.goinggo.net/2013/11/using-log-package-in-go.html
Use of log package (Go Playground)
Customizing your own log (Go Playground)
Setup a new program to use the log package. Set the Prefix to your first name and on each log line show the date and long path for the code file.
Template (Go Playground) | Answer (Go Playground)
All material is licensed under the Apache License Version 2.0, January 2004.