Package cherrypy :: Class _GlobalLogManager
[hide private]
[frames] | no frames]

Class _GlobalLogManager

source code

           object --+    
                    |    
_cplogging.LogManager --+
                        |
                       _GlobalLogManager

A site-wide LogManager; routes to app.log or global log as appropriate.

This :class:`LogManager<cherrypy._cplogging.LogManager>` implements cherrypy.log() and cherrypy.log.access(). If either function is called during a request, the message will be sent to the logger for the current Application. If they are called outside of a request, the message will be sent to the site-wide logger.

Instance Methods [hide private]
 
__call__(self, *args, **kwargs)
Log the given message to the app.log or global log as appropriate.
source code
 
access(self)
Log an access message to the app.log or global log as appropriate.
source code

Inherited from _cplogging.LogManager: __init__, error, reopen_files, time

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from _cplogging.LogManager: access_log, access_log_format, appid, error_log, logger_root

Properties [hide private]

Inherited from _cplogging.LogManager: access_file, error_file, screen, wsgi

Inherited from object: __class__

Method Details [hide private]

__call__(self, *args, **kwargs)
(Call operator)

source code 

Log the given message to the app.log or global log as appropriate.

Overrides: _cplogging.LogManager.__call__

access(self)

source code 

Log an access message to the app.log or global log as appropriate.

Overrides: _cplogging.LogManager.access