Creating a log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psbasha
    Contributor
    • Feb 2007
    • 440

    #1

    Creating a log file

    Hi,

    I have created a each class in different python files ( say each class as module).Now I have to track the errors thrown or return by the methods of the each class.

    How I can create/generate the log file for tracking all the errors thrown by the errors by the methods of the class during the execution of the application?.

    And my log file should capture the Start time and execution of the application,err or report-status of errors passed/failed.

    No of geometric elements traversed.

    Thanks in advance
    PSB
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by psbasha
    Hi,

    I have created a each class in different python files ( say each class as module).Now I have to track the errors thrown or return by the methods of the each class.

    How I can create/generate the log file for tracking all the errors thrown by the errors by the methods of the class during the execution of the application?.

    And my log file should capture the Start time and execution of the application,err or report-status of errors passed/failed.

    No of geometric elements traversed.

    Thanks in advance
    PSB
    I suppose that's what the logging module is for. But I don't use it because wxPython provides logging services.

    Comment

    • psbasha
      Contributor
      • Feb 2007
      • 440

      #3
      How to use the log module?

      Could anybody help me in uisng this modulke?

      -PSB

      Comment

      • ghostdog74
        Recognized Expert Contributor
        • Apr 2006
        • 511

        #4
        Originally posted by psbasha
        How to use the log module?

        Could anybody help me in uisng this modulke?

        -PSB
        read the logger module, especially the basic example. you seem to be doing a lot of things at the same time. For this , i certainly hope you have read at least a good python book or the tutorial to get a good grasp of the language.

        Comment

        Working...