Definition at line 677 of file trfValidation.py.
◆ __init__()
def python.trfValidation.scriptLogFileReport.__init__ |
( |
|
self, |
|
|
|
logfile = None , |
|
|
|
msgLimit = 200 , |
|
|
|
msgDetailLevel = stdLogLevels['ERROR'] |
|
) |
| |
◆ __str__()
def python.trfValidation.scriptLogFileReport.__str__ |
( |
|
self | ) |
|
◆ firstError()
def python.trfValidation.logFileReport.firstError |
( |
|
self | ) |
|
|
inherited |
◆ resetReport()
def python.trfValidation.scriptLogFileReport.resetReport |
( |
|
self | ) |
|
Reimplemented from python.trfValidation.logFileReport.
Definition at line 684 of file trfValidation.py.
684 def resetReport(self):
685 self._levelCounter.
clear()
686 for level
in list(stdLogLevels) + [
'UNKNOWN',
'IGNORED']:
687 self._levelCounter[level] = 0
689 self._errorDetails.
clear()
690 for level
in self._levelCounter:
691 self._errorDetails[level] = []
◆ rootSysErrorParser()
def python.trfValidation.scriptLogFileReport.rootSysErrorParser |
( |
|
self, |
|
|
|
line, |
|
|
|
lineCounter |
|
) |
| |
Definition at line 735 of file trfValidation.py.
735 def rootSysErrorParser(self, line, lineCounter):
736 msg.debug(
'Identified ROOT IO problem - adding to error detail report')
737 self._levelCounter[
'FATAL'] += 1
738 self._errorDetails[
'FATAL'].
append({
'message': line,
'firstLine': lineCounter,
'count': 1})
◆ scanLogFile() [1/2]
def python.trfValidation.logFileReport.scanLogFile |
( |
|
self | ) |
|
|
inherited |
◆ scanLogFile() [2/2]
def python.trfValidation.scriptLogFileReport.scanLogFile |
( |
|
self, |
|
|
|
resetReport = False |
|
) |
| |
Definition at line 693 of file trfValidation.py.
693 def scanLogFile(self, resetReport=False):
697 for log
in self._logfile:
698 msg.info(
'Scanning logfile {0}'.
format(log))
700 myGen = trfUtils.lineByLine(log)
702 msg.error(
'Failed to open transform logfile {0}: {1:s}'.
format(log, e))
704 self._levelCounter[
'ERROR'] = 1
705 self._errorDetails[
'ERROR'] = {
'message':
str(e),
'firstLine': 0,
'count': 1}
708 for line, lineCounter
in myGen:
712 if line.__contains__(
'Error in <TFile::ReadBuffer>')
or \
713 line.__contains__(
'Error in <TFile::WriteBuffer>'):
714 self.rootSysErrorParser(line, lineCounter)
◆ worstError()
def python.trfValidation.scriptLogFileReport.worstError |
( |
|
self | ) |
|
Reimplemented from python.trfValidation.logFileReport.
Definition at line 717 of file trfValidation.py.
717 def worstError(self):
718 worstlevelName =
'DEBUG'
719 worstLevel = stdLogLevels[worstlevelName]
720 for levelName, count
in self._levelCounter.
items():
721 if count > 0
and stdLogLevels.get(levelName, 0) > worstLevel:
722 worstlevelName = levelName
723 worstLevel = stdLogLevels[levelName]
725 if len(self._errorDetails[worstlevelName]) > 0:
726 firstError = self._errorDetails[worstlevelName][0]
730 return {
'level': worstlevelName,
'nLevel': worstLevel,
'firstError': firstError}
◆ _errorDetails
python.trfValidation.scriptLogFileReport._errorDetails |
|
private |
◆ _levelCounter
python.trfValidation.scriptLogFileReport._levelCounter |
|
private |
◆ _logfile
python.trfValidation.logFileReport._logfile |
|
privateinherited |
◆ _msgDetails
python.trfValidation.logFileReport._msgDetails |
|
privateinherited |
◆ _msgLimit
python.trfValidation.logFileReport._msgLimit |
|
privateinherited |
◆ _re
python.trfValidation.logFileReport._re |
|
privateinherited |
The documentation for this class was generated from the following file: