Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr Num Assign NameStore BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str TryExcept body With Call NameLoad NameLoad Str body Pass handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Expr Call NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults NameLoad body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Expr Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list decorator_list Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Call AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Str keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad TupleLoad NameLoad Num NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareNotIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body While UnaryOpNot AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad ListLoad Num If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad While NameLoad body TryExcept body Assign NameStore Call NameLoad Num handlers ExceptHandler type NameLoad body Return If CompareLt Call NameLoad NameLoad Num body Break If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad Call NameLoad Str NameLoad Index Num Assign NameStore Call NameLoad NameLoad AugAssignSub NameStore Call NameLoad NameLoad Assign NameStore NameLoad While NameLoad body Assign NameStore Call NameLoad NameLoad AugAssignSub NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A 
This is just a wrapper for the logging module.
Messages can be routed to the console via enable_console().
If the file logger.cfg exists, it can be used to configure logging.
See the Python documentation for `logging.config` for details.
The example below is equivalent to calling enable_console():

.. parsed-literal::

    [loggers]
    keys=root

    [handlers]
    keys=consoleHandler

    [formatters]
    keys=consoleFormatter

    [logger_root]
    level=DEBUG
    handlers=consoleHandler

    [handler_consoleHandler]
    class=StreamHandler
    level=DEBUG
    formatter=consoleFormatter
    args=(sys.stderr,)

    [formatter_consoleFormatter]
    format=%(levelname)s %(name)s: %(message)s

 N/A __all__ N/A logger getLogger enable_console disable_console TRACER enable_trace disable_trace Logger NullLogger LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_CRITICAL N/A atexit N/A logging.config N/A logging.handlers N/A os N/A os.path N/A select N/A socket N/A SocketServer N/A sys N/A threading N/A datetime cPickle loads struct unpack N/A LOG_DEBUG N/A logging DEBUG N/A LOG_INFO N/A logging INFO N/A LOG_WARNING N/A logging WARNING N/A LOG_ERROR N/A logging ERROR N/A LOG_CRITICAL N/A logging CRITICAL N/A LOG_DEBUG2 N/A N/A logging DEBUG 2 N/A LOG_DEBUG3 N/A N/A logging DEBUG 3 N/A N/A N/A logging addLevelName N/A logging NOTSET N N/A N/A N/A logging addLevelName N/A logging DEBUG D N/A N/A N/A logging addLevelName N/A logging INFO I N/A N/A N/A logging addLevelName N/A logging WARNING W N/A N/A N/A logging addLevelName N/A logging ERROR E N/A N/A N/A logging addLevelName N/A logging CRITICAL C N/A N/A N/A logging addLevelName LOG_DEBUG2 D2 N/A N/A N/A logging addLevelName LOG_DEBUG3 D3 _configure_root N/A N/A N/A N/A N/A  Configure root logger with a rotating file handler.  N/A filename N/A N/A N/A os environ get OPENMDAO_LOGFILE openmdao_log.txt N/A N/A N/A N/A open filename w N/A N/A N/A N/A N/A IOError N/A N/A filename N/A openmdao_log_%d.txt N/A N/A os getpid N/A msg_fmt %(asctime)s %(levelname)s %(name)s: %(message)s N/A date_fmt %b %d %H:%M:%S N/A formatter N/A N/A logging Formatter msg_fmt date_fmt N/A handler N/A N/A N/A logging handlers RotatingFileHandler filename N/A N/A N/A handler setFormatter formatter N/A N/A N/A handler setLevel 0 N/A N/A N/A N/A N/A logging getLogger addHandler handler N/A N/A N/A N/A logging _acquireLock N/A N/A N/A logger N/A N/A logging getLogger N/A N/A N/A logger handlers N/A N/A N/A _configure_root N/A N/A N/A N/A logging _releaseLock N/A N/A N/A N/A os path exists logging.cfg N/A N/A N/A N/A N/A logging config fileConfig logging.cfg getLogger N/A N/A name N/A N/A N/A  Return the named logger.  N/A N/A N/A logging getLogger name N/A N/A CONSOLE None enable_console N/A N/A level N/A N/A logging WARNING N/A N/A  Configure logging to receive log messages at the console.  N/A CONSOLE N/A N/A CONSOLE None N/A N/A CONSOLE N/A N/A logging StreamHandler N/A formatter N/A N/A logging Formatter %(levelname)s %(name)s: %(message)s N/A N/A N/A CONSOLE setFormatter formatter N/A N/A N/A CONSOLE setLevel level N/A N/A N/A logger addHandler CONSOLE N/A disable_console N/A N/A N/A N/A N/A  Stop receiving log messages at the console.  N/A N/A N/A logger removeHandler CONSOLE N/A N/A N/A int N/A N/A N/A os environ get OPENMDAO_ENABLE_CONSOLE 0 N/A N/A N/A enable_console N/A TRACER None enable_trace N/A N/A stream N/A None N/A N/A 
    Enable iteration tracing.

    stream: file or string
        File object or filename for trace output.
        Only used on first enable, default ``sys.stderr``.
     N/A TRACER N/A N/A TRACER None N/A N/A TRACER N/A N/A logging getLogger TRACER N/A N/A TRACER propagate False N/A formatter N/A N/A logging Formatter %(message)s N/A N/A stream None N/A N/A stream N/A sys stderr N/A N/A N/A isinstance stream basestring N/A N/A stream N/A open stream w N/A handler N/A N/A logging StreamHandler stream N/A N/A N/A handler setFormatter formatter N/A N/A N/A TRACER addHandler handler N/A N/A N/A TRACER setLevel N/A logging DEBUG N/A disable_trace N/A N/A N/A N/A N/A  Disable iteration tracing.  N/A N/A TRACER None N/A N/A N/A N/A TRACER setLevel N/A logging CRITICAL N/A N/A N/A int N/A N/A N/A os environ get OPENMDAO_ENABLE_TRACE 0 N/A N/A N/A enable_trace Logger N/A object N/A N/A  Pickle-able logger. Mostly a pass-through to a real logger. __init__ N/A N/A self name level N/A None N/A N/A N/A self _name name N/A N/A self _logger N/A N/A logging getLogger name N/A N/A self _level None N/A N/A level None N/A N/A N/A self level N/A N/A N/A self _logger getEffectiveLevel N/A N/A N/A self level level N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A N/A N/A self _name N/A other _name N/A N/A self _logger N/A other _logger N/A N/A self _level N/A other _level N/A N/A True N/A N/A N/A AttributeError N/A N/A N/A False N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A N/A self __eq__ other N/A __getstate__ N/A N/A self N/A N/A N/A  Return dict representing this Logger's state.  N/A state N/A N/A N/A self __dict__ copy N/A N/A state N/A _logger None N/A state N/A __setstate__ N/A N/A self state N/A N/A N/A  Restore this Logger's state.  N/A N/A self __dict__ state N/A N/A self _logger N/A N/A logging getLogger N/A self _name N/A N/A self level N/A self _level N/A _get_level N/A N/A self N/A N/A N/A  Return our level.  N/A N/A self _level N/A _set_level N/A N/A self level N/A N/A N/A  Set our level.  N/A N/A self _level level N/A N/A N/A N/A self _logger setLevel level N/A N/A level N/A property _get_level _set_level doc Logging message level. rename N/A N/A self name N/A N/A N/A  Change name reported in log.  N/A N/A self _name name N/A N/A self _logger N/A N/A logging getLogger name N/A N/A N/A N/A self _logger setLevel N/A self _level N/A debug N/A N/A self msg N/A args kwargs N/A N/A  Log a debug message.  N/A N/A N/A N/A self _logger debug msg args kwargs N/A info N/A N/A self msg N/A args kwargs N/A N/A  Log an information message.  N/A N/A N/A N/A self _logger info msg args kwargs N/A warning N/A N/A self msg N/A args kwargs N/A N/A  Log a warning message.  N/A N/A N/A N/A self _logger warning msg args kwargs N/A error N/A N/A self msg N/A args kwargs N/A N/A  Log an error message.  N/A N/A N/A N/A self _logger error msg args kwargs N/A exception N/A N/A self msg N/A args kwargs N/A N/A  Log an exception.  N/A N/A N/A N/A self _logger exception msg args kwargs N/A critical N/A N/A self msg N/A args kwargs N/A N/A  Log a critical message.  N/A N/A N/A N/A self _logger critical msg args kwargs N/A log N/A N/A self level msg N/A args kwargs N/A N/A  Log a message at a specified level.  N/A N/A N/A N/A self _logger log level msg args kwargs N/A N/A NullLogger N/A object N/A N/A 
    Can be useful when no logger has been supplied to a routine.
    It produces no output.
     debug N/A N/A self msg N/A args kwargs N/A N/A  Log a debug message.  N/A N/A info N/A N/A self msg N/A args kwargs N/A N/A  Log an information message.  N/A N/A warning N/A N/A self msg N/A args kwargs N/A N/A  Log a warning message.  N/A N/A error N/A N/A self msg N/A args kwargs N/A N/A  Log an error message.  N/A N/A exception N/A N/A self msg N/A args kwargs N/A N/A  Log an exception.  N/A N/A critical N/A N/A self msg N/A args kwargs N/A N/A  Log a critical message.  N/A N/A log N/A N/A self level msg N/A args kwargs N/A N/A  Log a message at a specified level.  N/A N/A N/A N/A _REMOTE_HANDLERS N/A install_remote_handler N/A N/A host port prefix N/A None N/A N/A 
    Installs a handler for logging to `host` on `port` with `prefix`.
    Returns True if connecting to the remote host was successful.

    host: string
        Host to send log requests to.

    port: int
        Port on `host` to send log requests to.

    prefix: string
        Added to the log record for use on `host`.
        The default prefix is ``pid@hostname``.
     N/A N/A prefix None N/A N/A prefix N/A %s@%s N/A N/A N/A os getpid N/A N/A socket gethostname N/A N/A N/A sock N/A N/A socket create_connection N/A host port N/A N/A N/A Exception N/A exc N/A N/A N/A N/A logging error Can't connect to logging server at %s:%s: %s host port exc N/A False N/A N/A N/A sock close N/A handler N/A _RemoteHandler host port prefix N/A root N/A N/A logging getLogger N/A N/A N/A root addHandler handler N/A my_pid N/A N/A os getpid N/A N/A my_pid _REMOTE_HANDLERS N/A N/A N/A pid handlers N/A N/A _REMOTE_HANDLERS items N/A N/A handler handlers N/A N/A N/A N/A N/A N/A root removeHandler handler N/A N/A N/A handler close N/A N/A N/A KeyError N/A N/A N/A N/A Exception N/A exc N/A N/A N/A N/A logging warning Can't remove inherited remote log handler: %s N/A N/A str exc N/A repr exc N/A N/A _REMOTE_HANDLERS N/A pid N/A N/A _REMOTE_HANDLERS N/A my_pid N/A N/A N/A N/A N/A _REMOTE_HANDLERS N/A my_pid append handler N/A True N/A remove_remote_handlers N/A N/A N/A N/A N/A  Removes all installed remote handlers.  N/A root N/A N/A logging getLogger N/A N/A pid handlers N/A N/A _REMOTE_HANDLERS items N/A N/A N/A pid N/A N/A os getpid N/A N/A handler handlers N/A N/A N/A N/A root removeHandler handler N/A N/A N/A handler close N/A N/A _REMOTE_HANDLERS N/A pid N/A _RemoteHandler N/A N/A N/A logging handlers SocketHandler N/A N/A  Handler which adds a ``prefix`` attribute to the log record.  __init__ N/A N/A self host port prefix N/A N/A N/A N/A self prefix prefix N/A N/A N/A N/A N/A logging handlers SocketHandler __init__ self host port N/A handle N/A N/A self record N/A N/A N/A 
        Add ``prefix`` attribute to `record` and format locally
        to avoid problems with object types which may not be handled
        well at the remote end.
         N/A N/A record prefix N/A self prefix N/A N/A record msg N/A N/A record getMessage N/A N/A record args None N/A N/A N/A N/A N/A logging handlers SocketHandler handle self record N/A N/A logging_port N/A N/A server_host client_host N/A N/A N/A 
    Return port to use to send log messages to `server_host`.
    Registers `client_host` as a legal host to receive from.
     N/A N/A N/A _LogListener server_port server_host client_host N/A _LogListener N/A object N/A N/A  Maintains :class:`_LogServer` threads.  N/A _lock N/A N/A threading Lock N/A _listeners N/A __init__ N/A N/A self hostname N/A N/A N/A N/A self _server None N/A N/A self _port None N/A N/A self _started N/A N/A threading Event N/A N/A self _thread N/A N/A threading Thread name N/A hostname -log-listener target N/A self _listen args N/A hostname N/A N/A N/A self _thread daemon True N/A N/A N/A N/A self _thread start N/A N/A N/A N/A self _started wait 10 N/A N/A N/A self _port None N/A N/A N/A RuntimeError N/A Timeout starting thread for %s hostname N/A port N/A N/A self N/A N/A N/A  Port server is listening on.  N/A N/A self _port N/A property _listen N/A N/A self hostname N/A N/A N/A  Listen for log messages.  N/A N/A self _server N/A _LogServer N/A hostname 0 _LogHandler N/A N/A self _port N/A N/A N/A self _server server_address N/A 1 N/A N/A N/A logging info Listening for log messages at %s:%s hostname N/A self _port N/A N/A N/A atexit register N/A self _stop N/A N/A os getpid N/A N/A N/A N/A self _started set N/A N/A N/A N/A self _server service_loop N/A _stop N/A N/A self pid N/A N/A N/A  Stop listening.  N/A N/A N/A N/A N/A os getpid pid N/A N/A N/A self _thread is_alive N/A N/A N/A N/A N/A self _server stop N/A N/A N/A N/A self _thread join 2 N/A server_port N/A N/A server_host client_host N/A N/A N/A 
        Return port to use to send log messages to `server_host`.
        Registers `client_host` as a legal host to receive from.
         N/A N/A _LogListener _lock N/A N/A listener N/A N/A N/A _LogListener _listeners get server_host None N/A N/A listener None N/A N/A listener N/A _LogListener server_host N/A N/A N/A _LogListener _listeners N/A server_host listener N/A port N/A listener port N/A N/A N/A _LogServer add_client client_host N/A port N/A staticmethod N/A _LogServer N/A N/A SocketServer ThreadingTCPServer N/A N/A  Server for remote logging requests.  N/A daemon_threads True N/A _hosts N/A set add_client N/A N/A hostname N/A N/A N/A  Add `hostname` as a legal client host.  N/A client_addr N/A N/A socket gethostbyname hostname N/A N/A N/A N/A _LogServer _hosts add client_addr N/A N/A N/A N/A client_addr startswith 127. N/A 127.0.0.1 N/A _LogServer _hosts N/A N/A N/A N/A N/A _LogServer _hosts add 127.0.0.1 N/A staticmethod verify_request N/A N/A self request client_address N/A N/A N/A 
        Returns True if the client at `client_address` is on a legal host.

        request: string
            Request message.

        client_address: ``(host, port)``
            Source of client request.
         N/A N/A host port client_address N/A N/A host N/A self _hosts N/A N/A True N/A N/A N/A logging warning Rejecting connection from %s: allowed hosts %s host N/A self _hosts N/A False N/A service_loop N/A N/A self N/A N/A N/A  Loop waiting for connections.  N/A N/A self _is_shut_down N/A N/A threading Event N/A N/A self _shutdown_request False N/A fd N/A N/A N/A self socket fileno N/A N/A N/A N/A N/A self _shutdown_request N/A N/A N/A rd wr ex N/A N/A select select N/A fd N/A N/A 0.5 N/A N/A fd rd N/A N/A N/A N/A self _handle_request_noblock N/A N/A N/A N/A N/A self _is_shut_down set N/A stop N/A N/A self N/A N/A N/A  Stop server loop.  N/A N/A self _shutdown_request True N/A N/A N/A N/A self _is_shut_down wait 2 N/A N/A _LogHandler N/A N/A SocketServer StreamRequestHandler N/A N/A  Handler for a stream of logging requests.  handle N/A N/A self N/A N/A N/A  Handle log requests until connection closed.  N/A makeLogRecord N/A logging makeLogRecord N/A logger N/A N/A logging getLogger remote N/A conn N/A self connection N/A recv N/A conn recv N/A peer None N/A True N/A N/A N/A N/A data N/A recv 4 N/A N/A N/A Exception N/A N/A N/A N/A N/A len data 4 N/A N/A N/A N/A peer None N/A N/A N/A host port N/A N/A conn getpeername N/A N/A N/A N/A host aliases addrs N/A N/A socket gethostbyaddr host N/A N/A N/A Exception N/A exc N/A N/A N/A N/A logger debug gethostbyaddr(%s) failed: %s host N/A N/A str exc N/A repr exc N/A peer N/A %s:%s N/A host port N/A N/A N/A logger info New logging connection from %s peer N/A slen N/A N/A unpack >L data N/A 0 N/A data N/A recv slen N/A slen N/A len data N/A msg data N/A slen N/A N/A data N/A recv slen N/A slen N/A len data N/A msg N/A N/A join N/A msg data N/A N/A N/A obj N/A loads msg N/A record N/A makeLogRecord obj N/A N/A N/A Exception N/A exc N/A N/A N/A N/A logger exception Can't process log request from %s: %s peer exc N/A N/A prefix N/A record prefix N/A name N/A record name N/A N/A name prefix N/A N/A N/A record name N/A [%s] %s N/A prefix name N/A N/A N/A record name N/A [%s] prefix N/A N/A N/A logger handle record N/A N/A N/A conn close N/A N/A peer None N/A N/A N/A N/A logger info Logging connection from %s closed peer N/A N/A