Logging in Shell Scripts
Difficulty: Intermediate
Duration: 7 minutes and 40 seconds
Students: 924
Rating: 4.6/5
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.
Learning Objectives
- Learn how to carry out logging in your shell scripts.
- Learn about the syslog standard and how to generate messages that conform to that standard.
- Learn how to create your own custom logging functions.
Intended Audience
This Lesson is intended for anyone looking to learn more about bash scripting and shell programming in Linux.
Prerequisites
To get the most out of this Lesson, you should have some basic knowledge of the command line, but it's not essential.
Covered Topics