ATLAS Offline Software
Loading...
Searching...
No Matches
python.trfValidation.logFileReport Class Reference

A class holding report information from scanning a logfile This is pretty much a virtual class, fill in the specific methods when you know what type of logfile you are dealing with. More...

Inheritance diagram for python.trfValidation.logFileReport:
Collaboration diagram for python.trfValidation.logFileReport:

Public Member Functions

 __init__ (self, logfile=None, msgLimit=10, msgDetailLevel=stdLogLevels['ERROR'])
 resetReport (self)
 scanLogFile (self)
 worstError (self)
 firstError (self)
 __str__ (self)

Protected Attributes

list _logfile = [logfile, ]
 _msgLimit = msgLimit
 _msgDetails = msgDetailLevel
 _re = None

Detailed Description

A class holding report information from scanning a logfile This is pretty much a virtual class, fill in the specific methods when you know what type of logfile you are dealing with.

Definition at line 106 of file trfValidation.py.

Constructor & Destructor Documentation

◆ __init__()

python.trfValidation.logFileReport.__init__ ( self,
logfile = None,
msgLimit = 10,
msgDetailLevel = stdLogLevels['ERROR'] )

Definition at line 107 of file trfValidation.py.

107 def __init__(self, logfile=None, msgLimit=10, msgDetailLevel=stdLogLevels['ERROR']):
108
109 # We can have one logfile or a set
110 if isinstance(logfile, str):
111 self._logfile = [logfile, ]
112 else:
113 self._logfile = logfile
114
115 self._msgLimit = msgLimit
116 self._msgDetails = msgDetailLevel
117 self._re = None
118
119 if logfile:
120 self.scanLogFile(logfile)
121

Member Function Documentation

◆ __str__()

python.trfValidation.logFileReport.__str__ ( self)

Definition at line 134 of file trfValidation.py.

134 def __str__(self):
135 return ''
136
137

◆ firstError()

python.trfValidation.logFileReport.firstError ( self)

Reimplemented in python.trfValidation.athenaLogFileReport.

Definition at line 131 of file trfValidation.py.

131 def firstError(self):
132 pass
133

◆ resetReport()

python.trfValidation.logFileReport.resetReport ( self)

Reimplemented in python.trfValidation.athenaLogFileReport, and python.trfValidation.scriptLogFileReport.

Definition at line 122 of file trfValidation.py.

122 def resetReport(self):
123 pass
124

◆ scanLogFile()

python.trfValidation.logFileReport.scanLogFile ( self)

Reimplemented in python.trfValidation.athenaLogFileReport, and python.trfValidation.scriptLogFileReport.

Definition at line 125 of file trfValidation.py.

125 def scanLogFile(self):
126 pass
127

◆ worstError()

python.trfValidation.logFileReport.worstError ( self)

Reimplemented in python.trfValidation.athenaLogFileReport, and python.trfValidation.scriptLogFileReport.

Definition at line 128 of file trfValidation.py.

128 def worstError(self):
129 pass
130

Member Data Documentation

◆ _logfile

list python.trfValidation.logFileReport._logfile = [logfile, ]
protected

Definition at line 111 of file trfValidation.py.

◆ _msgDetails

python.trfValidation.logFileReport._msgDetails = msgDetailLevel
protected

Definition at line 116 of file trfValidation.py.

◆ _msgLimit

python.trfValidation.logFileReport._msgLimit = msgLimit
protected

Definition at line 115 of file trfValidation.py.

◆ _re

python.trfValidation.logFileReport._re = None
protected

Definition at line 117 of file trfValidation.py.


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