Template for HTML logfile layout

A HTML template contains the user-defined layout of logfiles generated by ITLogLib (using web page logfiles) or logmessages exported as HTML files by ITLogBook (Save As Dialog).

For your convenience you can generate a default HTML templates out of ITConfigManager or ITLogBook and modify it using a HTML editor.

 

An HTML template must contain predefined keywords ( [$<keyword>$] ) to separate the three parts of a logfile:

·      Logfile header
The logfile header will be written
once at the top of each logfile and contains the HTML code following the keyword [$LOGFILEHEADER$] in the HTML template

·      Logfile body
The logfile body will be written
for each logmessage and contains the HTML code between the keywords [$LOGMSGBEGIN$] and [$LOGMSGEND$]

·      Logfile footer
The logfile footer will be written
once at the end of each logfile and contains the HTML code following the keyword [$LOGMSGEND$]

 

Each of the three parts may contain various predefined template variables ( $<variable name>$ ) that will be replaced either by ITLogLib or by ITLogBook when writing or exporting logfiles.

 

Note:

·      The keywords [$LOGFILEHEADER$], [$LOGMSGBEGIN$] and [$LOGMSGEND$] must stand in one single HTML line.
Don’t worry about its appearance viewing the template a browser.

·      You also can use the header variables to set the title of the HTML page.

·      The keyword lines itself does not appear in the generated or exported logfiles.

·      ITLogLib and ITLogBook use the default HTML template if no special template file is specified or available.