• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(18285)  |  Call(2)  |  Derive(0)  |  Import(18283)
Logging package for Python. Based on PEP 282 and comments thereto in
comp.lang.python, and influenced by Apache's log4j system.

Copyright (C) 2001-2010 Vinay Sajip. All Rights Reserved.

To use, simply 'import logging' and log away!

src/f/e/feedprovider-0.2.1/gozerlib/socket/irc/irc.py   feedprovider(Download)
import os
import Queue
import random
import logging
 
## locks
 
                timeout += 1
                if timeout > 2:
                    doreconnect = 1
                    logging('irc - no pong received')
                    break
                logging.debug("irc - socket timeout")
                pingsend = self.ping()

src/f/e/feedprovider-0.2.1/gozerlib/eggs.py   feedprovider(Download)
 
import os
import sys
import logging
 
## define
 
        working_set.add_entry(egg.location)
        latest[egg.project_name] = egg
        sys.path.insert(0, egg.location)
        log and logging('eggs - loaded %s' % egg)
    except VersionConflict, ex:
        if egg > ex[0]:
            env.add(egg)