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

Class _GlobalLogManager

source code

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

Instance Methods [hide private]
 
__call__(self, *args, **kwargs)
Write to the error log.
source code
 
access(self)
Write to the access log (in Apache/NCSA Combined Log format).
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

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 

Write to the error log.

This is not just for errors! Applications may call this at any time to log application-specific information.

Overrides: _cplogging.LogManager.__call__
(inherited documentation)

access(self)

source code 

Write to the access log (in Apache/NCSA Combined Log format).

Like Apache started doing in 2.0.46, non-printable and other special characters in %r (and we expand that to all parts) are escaped using \xhh sequences, where hh stands for the hexadecimal representation of the raw byte. Exceptions from this rule are " and \, which are escaped by prepending a backslash, and all whitespace characters, which are written in their C-style notation (\n, \t, etc).

Overrides: _cplogging.LogManager.access
(inherited documentation)