Solved How to use syslog to log maintenance scripts' activity?

Hey,

would anyone be able to tell me how I could use syslog to log stuff I do in my management scripts? Like I'd like to start writing scripts to automate some of the system's maintenance, but one of the things that's stopping me, I think, is that I don't really have an easy way to log what's happening... Sure, I could set-up the scripts, but then I'd just forget about them... I'd really like to put stuff in a log somewhere, and I'd like to use syslog instead of just echoing to a/various text file(s)... Like I just end-up writing a function that logs with a timestamp and whatnot, and then I have to include that function in every script, or I have to create a whole framework just to run a few management scripts... Seemed fun in the past, but I kinda just want to use syslog anyway... that option seems more fun right now, and seems like it's a clean, long-term solution to what could become a problem as it grows...

There has to be an easy way... a command, something... ?
 
Back
Top