README Logger.py
A Python based tool which converts a log file to html and sends you an email if that log has changed.
Copyright:
Copyright (c) 2005, George Bobeck
Download:
Available for download at http://www.cs.luc.edu/projects/comp412/dredd/downloads/
Usage::
# python logger.py <file to be processed>
OR :
# chmod 0700 logger.py # ./logger.py <file to be processed>
Configurables:
server - Imput your mail server here. The value localhost is perfectly valid.
=====
source - Imput an originating email. Ideally, this value should be valid. The value root@localhost is perfectly valid, but may be filtered out by some spam filters.
=====
destination - Your email address goes here. Comment out (using a # at the beginning of the line) mail(server, source, destination, TODO) near the end of this script if you don't want to have anything emailed to you.
=====
page - This controls where the .html version of your log file will be created.
If you don't want to use html output, leave it as is OR change to /dev/null. By default, page = "/usr/local/apache2/htdocs/"
Comment out (using a # at the beginning of the line) webize(page, TODO, logsub) near the end of this script if you don't want to have .html output.
=====
Verbose output is enabled by default. If you absolutely hate verbose output, you can disable it by commenting it out (using a # at the beginning of the line) all of the print <string> statements.