Hello monks, I am yet again in need for some guidance.
Very often, from my pov, the question of log format is only put when the log is there and we have to parse it. I have the opportunity to decide the log format for new Perl scripts, and I seek you advice to choose the best solution
I am logging outputs from a mainframe, and for each reference, I have to log the main screen of the record, and depending on the need, I have to issue several commands on this record and log them. For the moment, I am only logging outputs in a flat text file, each record being separate by a line of '-', and inside each section, each entry is starting with a line like '>MD' where '>' is the prompt and 'MD' a command (example).
I am now looking for a smarter way to log the output, but I guess that it could be also useful to log the actions taken on the record, and various information technical and functional extrapolated by the script. Instead of using a flat file, I am interested by the XML format. What do you think ? is there a better format ? also, what would be for you the ideal format to mix outputs and other information in a single log file?
As a minor question, what is for you the best module to write and read simple XML files used for logging activity?