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

All Samples(3697)  |  Call(3571)  |  Derive(0)  |  Import(126)
No Document.

src/p/y/pyogp.apps-0.1dev/pyogp/apps/examples/parse_packets.py   pyogp.apps(Download)
import traceback
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.settings import Settings
from logging import getLogger, StreamHandler, Formatter, CRITICAL, ERROR, WARNING, INFO, DEBUG
 
logger = getLogger('parse_packet')
 

src/c/e/cerebrum-HEAD/trunk/cerebrum/clients/examples/bofh.py   cerebrum(Download)
    formatter = logging.Formatter(
        "%(asctime)s - %(name)s - %(levelname)s - %(message)s")
    ch = logging.StreamHandler()
    ch.setLevel(logging.ERROR)
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    if debug_log:

src/c/h/changingsong-HEAD/trunk/samples/debug_mode/debugmode.py   changingsong(Download)
    (options, args) = parser.parse_args()
    level = options.debuglevel
    if level == "error":
        level = logging.ERROR
    elif level == "warning":
        level = logging.WARNING
    elif level == "info":

src/c/e/cerebrum-HEAD/cerebrum/clients/examples/bofh.py   cerebrum(Download)
    formatter = logging.Formatter(
        "%(asctime)s - %(name)s - %(levelname)s - %(message)s")
    ch = logging.StreamHandler()
    ch.setLevel(logging.ERROR)
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    if debug_log:

src/c/h/changingsong-HEAD/samples/debug_mode/debugmode.py   changingsong(Download)
    (options, args) = parser.parse_args()
    level = options.debuglevel
    if level == "error":
        level = logging.ERROR
    elif level == "warning":
        level = logging.WARNING
    elif level == "info":

src/c/h/changingsong-HEAD/trunk/samples/debug_mode/mainwindowdlg.py   changingsong(Download)
        QMainWindow.__init__(self, parent)
        self.setupUi(self)
        # menu debug enabled
        if loglevel <= logging.ERROR:
            log.info('displaying debug menu')
            self.log_actgroup = QActionGroup(self)
            self.log_actgroup.addAction(self.actionLogDebug)

src/c/h/changingsong-HEAD/samples/debug_mode/mainwindowdlg.py   changingsong(Download)
        QMainWindow.__init__(self, parent)
        self.setupUi(self)
        # menu debug enabled
        if loglevel <= logging.ERROR:
            log.info('displaying debug menu')
            self.log_actgroup = QActionGroup(self)
            self.log_actgroup.addAction(self.actionLogDebug)

src/d/j/django-navbar-0.3.0/examples/dbgp/_logging/handlers.py   django-navbar(Download)
                logging.DEBUG   : win32evtlog.EVENTLOG_INFORMATION_TYPE,
                logging.INFO    : win32evtlog.EVENTLOG_INFORMATION_TYPE,
                logging.WARNING : win32evtlog.EVENTLOG_WARNING_TYPE,
                logging.ERROR   : win32evtlog.EVENTLOG_ERROR_TYPE,
                logging.CRITICAL: win32evtlog.EVENTLOG_ERROR_TYPE,
         }
        except ImportError:

src/s/l/SleekXMPP-HEAD/examples/echo_client.py   SleekXMPP(Download)
    # Output verbosity options.
    optp.add_option('-q', '--quiet', help='set logging to ERROR',
                    action='store_const', dest='loglevel',
                    const=logging.ERROR, default=logging.INFO)
    optp.add_option('-d', '--debug', help='set logging to DEBUG',
                    action='store_const', dest='loglevel',
                    const=logging.DEBUG, default=logging.INFO)

src/s/l/SleekXMPP-HEAD/examples/config_component.py   SleekXMPP(Download)
    # Output verbosity options.
    optp.add_option('-q', '--quiet', help='set logging to ERROR',
                    action='store_const', dest='loglevel',
                    const=logging.ERROR, default=logging.INFO)
    optp.add_option('-d', '--debug', help='set logging to DEBUG',
                    action='store_const', dest='loglevel',
                    const=logging.DEBUG, default=logging.INFO)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next