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>