Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
logging.handlers.BaseRotatingHandler Class Reference
Inheritance diagram for logging.handlers.BaseRotatingHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def emit

Public Attributes

 mode
 encoding

Detailed Description

Base class for handlers that rotate log files at a certain point.
Not meant to be instantiated directly.  Instead, use RotatingFileHandler
or TimedRotatingFileHandler.

Definition at line 53 of file handlers.py.


Constructor & Destructor Documentation

def logging.handlers.BaseRotatingHandler.__init__ (   self,
  filename,
  mode,
  encoding = None,
  delay = 0 
)
Use the specified filename for streamed logging

Definition at line 59 of file handlers.py.

00059 
00060     def __init__(self, filename, mode, encoding=None, delay=0):
00061         """
00062         Use the specified filename for streamed logging
00063         """
00064         if codecs is None:
00065             encoding = None
00066         logging.FileHandler.__init__(self, filename, mode, encoding, delay)
00067         self.mode = mode
00068         self.encoding = encoding

Here is the caller graph for this function:


Member Function Documentation

def logging.handlers.BaseRotatingHandler.emit (   self,
  record 
)
Emit a record.

Output the record to the file, catering for rollover as described
in doRollover().

Definition at line 69 of file handlers.py.

00069 
00070     def emit(self, record):
00071         """
00072         Emit a record.
00073 
00074         Output the record to the file, catering for rollover as described
00075         in doRollover().
00076         """
00077         try:
00078             if self.shouldRollover(record):
00079                 self.doRollover()
00080             logging.FileHandler.emit(self, record)
00081         except (KeyboardInterrupt, SystemExit):
00082             raise
00083         except:
00084             self.handleError(record)

Here is the call graph for this function:


Member Data Documentation

Definition at line 67 of file handlers.py.


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