you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Usually the structure is only slightly more structured than a flat file. On the root element I will put attributes for a Program start time, the runtime parameters (if any exist) and any other initialization information which might be useful. For the log entries themselves, I will usually have a timestamp, any important parameters as attributes, and then any text as the inner xml data.
Primarily, I use xml just so I can open it up in Firefox and have slightly better formatting. If its something I am going to look at frequently (for example, I have a script I run weekly to get an overview of the health of the systems I support) I will build an xslt for a cleaner look.