Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
logging.PercentStyle Class Reference
Inheritance diagram for logging.PercentStyle:
Inheritance graph
[legend]
Collaboration diagram for logging.PercentStyle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def usesTime
def format

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

string default_format = '%(message)s'
string asctime_format = '%(asctime)s'
string asctime_search = '%(asctime)'

Private Attributes

 _fmt

Detailed Description

Definition at line 359 of file __init__.py.


Constructor & Destructor Documentation

def logging.PercentStyle.__init__ (   self,
  fmt 
)

Reimplemented in logging.StringTemplateStyle.

Definition at line 365 of file __init__.py.

00365 
00366     def __init__(self, fmt):
00367         self._fmt = fmt or self.default_format

Here is the caller graph for this function:


Member Function Documentation

def logging.PercentStyle.format (   self,
  record 
)

Reimplemented in logging.StringTemplateStyle, and logging.StrFormatStyle.

Definition at line 371 of file __init__.py.

00371 
00372     def format(self, record):
00373         return self._fmt % record.__dict__

Here is the caller graph for this function:

Reimplemented in logging.StringTemplateStyle.

Definition at line 368 of file __init__.py.

00368 
00369     def usesTime(self):
00370         return self._fmt.find(self.asctime_search) >= 0

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in logging.StringTemplateStyle.

Definition at line 366 of file __init__.py.

Reimplemented in logging.StringTemplateStyle, and logging.StrFormatStyle.

Definition at line 362 of file __init__.py.

Reimplemented in logging.StringTemplateStyle, and logging.StrFormatStyle.

Definition at line 363 of file __init__.py.

Reimplemented in logging.StringTemplateStyle, and logging.StrFormatStyle.

Definition at line 361 of file __init__.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: