Module log2xml
[hide private]
[frames] | no frames]

Module log2xml

source code

Symbian log converter.

Classes [hide private]
  Stack
Bottomless stack.
  LogWriter
XML Log writer.
  ContentWriter
SAX Content writer.
  AppendSummary
SAX content handler to add an XML log to the summary.
Functions [hide private]
 
find_priority(line, config) source code
 
to_cdata(text)
Cleanup string to match CDATA requiements.
source code
 
convert(inputfile, outputfile, fulllogging=True, configuration=DEFAULT_CONFIGURATION)
Convert an input log into an XML log and write an outputfile.
source code
 
convert_old(inputfile, outputfile, fulllogging=True, configuration=DEFAULT_CONFIGURATION)
Convert an input log into an XML log and write an outputfile.
source code
 
append_summary(summary, xmllog, maxmb=80)
Append content to the summary xml file.
source code
 
symbian_log_header(output, config, command, dir) source code
 
symbian_log_footer(output) source code
Variables [hide private]
  DEFAULT_CONFIGURATION = {"FATAL": [r"mingw_make.exe"], "ERROR"...
Function Details [hide private]

to_cdata(text)

source code 
Cleanup string to match CDATA requiements. These are the only allowed characters: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF].

Variables Details [hide private]

DEFAULT_CONFIGURATION

Value:
{"FATAL": [r"mingw_make.exe"], "ERROR": [r'^(?:(?:\s*\d+\)\s*)|(?:\s*\\
*\*\*\s*))ERROR:', r"^MISSING:", r"Error:\s+", r"^Error:", r"'.+' is n\
ot recognized as an internal or external command", r"FLEXlm error:", r\
"(ABLD|BLDMAKE) ERROR:", r"FATAL ERROR\(S\):", r"fatal error U1077", r\
"warning U4010", r"^make(?:\[\d+\])?\: \*\*\*", r"^make(?:\[\d+\])?:\s\
+.*\s+not\s+remade", r"\"(.*)\", line (\d+): (Error: +(.\d+.*?):.*)$",\
 r"error: ((Internal fault):.*)$", r"Exception: [A-Z0-9_]+", r"target \
.* given more than once in the same rule", r"^ERROR:", r"^ERROR EC\d+:\
...