SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Module for tiered logging?

    I'd like to implement logging in my scripts, using the 4 standard log levels (error, warning, info, debug).

    Rather than re-invent the wheel, does anyone know of a module I can drop into my code that will handle the details?

    ideally I can create several log files from the same script execution.. e.g., an "error" file that is sent to stakeholders, and an "info" file that has all the "error" details + more for the testers to review.

    thanks!

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Location
    Wisconsin, USA
    Posts
    5,338
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Module for tiered logging?

    The only way I know of to do something like this is to manually instrument your code.

    Anyone have any different ideas?

  3. #3
    Member
    Join Date
    Feb 2007
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Module for tiered logging?

    I have found good modules developed by others in the past to implement logging.... however google isn't being as helpful this time around [img]/images/graemlins/laugh.gif[/img]

  4. #4
    Member
    Join Date
    May 2004
    Location
    Chicago
    Posts
    379
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Module for tiered logging?

    I don't use the TP logging at all. What I created was couple functions that logged to a text file. After the scripts are done, it will convert this text file to a html file which I load onto a server. Then my boss can look at the file from there (actually I created a webpage that accesses all the run outputs). Here is a link of when I posted it before. Any questions please ask.

    http://www.sqaforums.com/showflat.php?Ca...true#Post339477
    Richard DeMers
    QA Software Tester
    http://www.marchforbabies.org/rdemers25

  5. #5
    Member
    Join Date
    Feb 2007
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Module for tiered logging?

    thanks for the post rdemers25, I will definitely refer to it.

    In the meantime I have whipped up an object that will manage the 4 different log files and can be used to log messages of different priority.

  6. #6
    Member
    Join Date
    May 2004
    Location
    Chicago
    Posts
    379
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Module for tiered logging?

    Yeah, I think I have 4 as well. I use Pass/Fail/Verify/Title.
    Richard DeMers
    QA Software Tester
    http://www.marchforbabies.org/rdemers25

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:01 AM.

Copyright BetaSoft Inc.