showlog: Revamp the print_line machinery to make html output possible
commit57bf7b92390e7fdb7911027bb5bab9ebc81e1461
authorAndreas Ericsson <ae@op5.se>
Sun, 24 Jan 2010 22:06:43 +0000 (24 23:06 +0100)
committerAndreas Ericsson <ae@op5.se>
Sun, 24 Jan 2010 22:08:51 +0000 (24 23:08 +0100)
tree4b250accdb82e954361cf7a1b5d69b1bb3e8c626
parent369517e068f52b3602f062fe0b1b0fec896dae86
showlog: Revamp the print_line machinery to make html output possible

Since we want the printing to be able to add stuff based on the type
of the event and, possibly, the state of the object concerned, we make
the print_line function take the type of the event as an argument, and
we stash the "severity" in a global variable (since it doesn't always
apply).

We also implement print_line_html() which prints html-ified output
(although some styling is definitely required).

Signed-off-by: Andreas Ericsson <ae@op5.se>
showlog.c