pathpy  1.0
pathpy is an OpenSource python package for the modeling and analysis of pathways and temporal networks using higher-order and multi-order graphical models
 All Classes Functions Variables
Static Public Member Functions | Static Public Attributes | List of all members
pathpy.Log.Log Class Reference

Static Public Member Functions

def setMinSeverity
 
def setOutputStream
 
def add
 

Static Public Attributes

 output_stream = sys.stdout
 the output stream to which log entries will be written
 
 min_severity = Severity.INFO
 The minimum severity level of messages to be logged.
 

Detailed Description

A simple logging class, that allows to select what messages should 
    be recorded in the output, and where these message should be directed.

Member Function Documentation

def pathpy.Log.Log.add (   msg,
  severity = Severity.INFO 
)
static
Adds a message with the given severity to the log. This message will be written 
    to the log output stream, which by default is sys.stdout. A newline character 
    will be added to the message by default.
def pathpy.Log.Log.setMinSeverity (   severity)
static
Sets the minimum sveerity level a message 
needs to have in order to be recorded in the output stream.
By default, any message which has a severity of at least 
Severity.INFO will be written to the output stream. All messages 
with lower priority will be surpressed.
def pathpy.Log.Log.setOutputStream (   stream)
static
Sets the output stream to which all messages will be 
    written. By default, this is sys.stdout, but it can be 
    changed in order to redirect the log to a logfile. 

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