Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
Instances of the Logger class represent a single logging channel. A
"logging channel" indicates an area of an application. Exactly how an
"area" is defined is up to the application developer. Since an
application can have any number of areas, logging channels are identified
by a unique string. Application areas can be nested (e.g. an area
of "input processing" might include sub-areas "read CSV files", "read
XLS files" and "read Gnumeric files"). To cater for this natural nesting,
channel names are organized into a namespace hierarchy where levels are
separated by periods, much like the Java or Python package namespace. So
in the instance given above, channel names might be "input" for the upper(more...)

src/p/y/pyroutes-HEAD/pyroutes/middleware/errors.py   pyroutes(Download)
import traceback
 
from pyroutes import settings, LOGGER
from pyroutes.http.response import HttpException, Http404, Http500
 

src/p/y/pyroutes-0.5.0/pyroutes/middleware/errors.py   pyroutes(Download)
import traceback
 
from pyroutes import settings, LOGGER
from pyroutes.http.response import HttpException, Http404, Http500
 

src/p/y/pyroutes-HEAD/pyroutes/middleware/appendslash.py   pyroutes(Download)
 
from pyroutes.http.response import Redirect
from pyroutes import LOGGER
 
class AppendSlashes(object):

src/p/y/pyroutes-0.5.0/pyroutes/middleware/appendslash.py   pyroutes(Download)
 
from pyroutes.http.response import Redirect
from pyroutes import LOGGER
 
class AppendSlashes(object):

src/p/y/pyroutes-HEAD/tests/stderr_helper.py   pyroutes(Download)
def redirect_stderr():
    sys.stderr = fake_stderr
    pyroutes.LOGGER.handlers = fake_loghandlers
 
def revert_stderr():
    sys.stderr = real_stderr
    pyroutes.LOGGER.handlers = real_loghandlers