taskSilpa Indian Language Processing Project - Tasks: task #10433, Add a logging component to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #10433: Add a logging component to framework

Submitter:  Santhosh Thottingal <santhosh>
Submitted:  Sun 30 May 2010 03:15:39 PM UTC
   
 
Should Start On:  Sat 29 May 2010 06:30:00 PM UTC Should be Finished on:  Tue 29 Jun 2010 06:30:00 PM UTC
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  vasudev Percent Complete:  100%
Open/Closed:  Closed Effort:  0.00

Sat 12 Jun 2010 03:19:11 PM UTC, comment #1: 

I have merged the code from vasudev to master brach for logging. I did some changes to silpalogger to make the usage some more simple.
Following code snippet explains the usage

from utils import *
silpalogger.info("your logging message")

Thanks vasudev for his contribution. I am closing this task

Santhosh Thottingal <santhosh>
Group administrator
Sun 30 May 2010 03:15:39 PM UTC, original submission:  

Apache +  mod_wsgi has some limitations in using print statements for debugging(see http://code.google.com/p/modwsgi/wiki/DebuggingTechniques). Moreover using print statements is not a clean way or logging.

What we need is a logging component , that will write the debug , error, and such information to a separate log file (or optionally  std.out or std.err)
from the modules, one should able to log like this
from utils import silpa_logger
silpa_logger.info(.....)
silpa_logger.debug(.....)
silpa_logger.error(.....)

Proposed solution: Just write a wrapper over python logging module and make it available through out the framework.




Santhosh Thottingal <santhosh>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vasudev (Updated the item)
  • -email is unavailable- added by santhosh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-12 santhosh Percent Complete0% 100%
        Open/ClosedOpen Closed
    2010-06-05 vasudev Assigned toNone vasudev

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code