[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16878: {} Add small stub file for logging refactoring. (projects/gettor)



Author: ioerror
Date: 2008-09-12 21:03:05 -0400 (Fri, 12 Sep 2008)
New Revision: 16878

Added:
   projects/gettor/gettor_log.py
Log:
Add small stub file for logging refactoring.


Added: projects/gettor/gettor_log.py
===================================================================
--- projects/gettor/gettor_log.py	                        (rev 0)
+++ projects/gettor/gettor_log.py	2008-09-13 01:03:05 UTC (rev 16878)
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+'''
+gettor may log information, this is how we handle that logging requirement.
+A user may log to syslog, a file, stdout or not at all.
+The user can choose one of those four options in a configuration file.
+'''
+
+class gettorLogger:
+    '''
+    A configurable logging system for gettor.
+    '''
+
+    def _init_(self):  
+        # parse the configuration file so we know how we're running 
+    
+    def log(self, message):
+        # Log the message
+