Showing posts with label logging. Show all posts
Showing posts with label logging. Show all posts

Tuesday, May 7, 2013

logging in bash - nice subroutine to reuse

I had a need to support good logging capabilities in bash. The reason was that there were quite a few scripts which needed consistent logs being rolled over every day. Here is the solution which I have come up with. As a result, a separate log file is created with datestamp in the filename.