HWRF  trunk@4391
Public Member Functions | List of all members
produtil.log.JLogHandler Class Reference

Custom LogHandler for the jlogfile. More...

Detailed Description

Custom LogHandler for the jlogfile.

This is a custom logging Handler class for the jlogfile. It has a higher minimum log level for messages not sent to the jlogfile domain. Also, for every log message, the log file is opened, the message is written and the file is closed. This is done to mimic the postmsg command. Exception information is never sent to the log file.

Definition at line 177 of file log.py.

Inheritance diagram for produtil.log.JLogHandler:
produtil.log.MasterLogHandler

Public Member Functions

def emit (self, record)
 Write a log message. More...
 
def set_jlogfile (self, filename)
 Set the location of the jlogfile. More...
 
- Public Member Functions inherited from produtil.log.MasterLogHandler
def __init__ (self, logger, jlogdomain, otherlevels, joformat, jformat)
 Custom LogHandler for the master process of a multi-process job. More...
 
def stringify_record (self, record)
 Convert a log record to a string. More...
 
def emit (self, record)
 Write a log message. More...
 

Member Function Documentation

def produtil.log.JLogHandler.emit (   self,
  record 
)

Write a log message.

Parameters
recordthe log record
Note
See the Python logging module documentation for details.

Definition at line 186 of file log.py.

def produtil.log.JLogHandler.set_jlogfile (   self,
  filename 
)

Set the location of the jlogfile.

Parameters
filenameThe path to the jlogfile.

Definition at line 214 of file log.py.


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