Personal tools
You are here: Home Documentation Software README Files README Logger.py
Document Actions

README Logger.py

by dredd last modified 2005-10-17 07:11 AM

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.

« November 2009 »
Su Mo Tu We Th Fr Sa
1234567
891011121314
15161718192021
22232425262728
2930
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: