If you want to keep a record of what occurred during an execution of a shell script, you'll want to employ some sort of logging mechanism. In this Lesson, you will learn why you may want to use logging in your shell scripts. You'll also learn about the syslog standard and how to generate messages that conform to that standard. Finally, you'll learn how to create your own custom logging functions.
This Lesson is intended for anyone looking to learn more about bash scripting and shell programming in Linux.
To get the most out of this Lesson, you should have some basic knowledge of the command line, but it's not essential.