+static const char *ppsz_type[4] = { ": ", " error: ",
+ " warning: ", " debug: " };
+
+static void TextPrint( const msg_item_t *p_msg, FILE *p_file )
+{
+ LOG_STRING( p_msg->psz_module, p_file );
+ LOG_STRING( ppsz_type[p_msg->i_type], p_file );
+ LOG_STRING( p_msg->psz_msg, p_file );
+ LOG_STRING( "\n", p_file );
+}
+
+static void HtmlPrint( const msg_item_t *p_msg, FILE *p_file )
+{
+ static const char *ppsz_color[4] = { "<font color=\"#ffffff\">",
+ "<font color=\"#ff6666\">",
+ "<font color=\"#ffff66\">",
+ "<font color=\"#aaaaaa\">" };
+
+ LOG_STRING( p_msg->psz_module, p_file );
+ LOG_STRING( ppsz_type[p_msg->i_type], p_file );
+ LOG_STRING( ppsz_color[p_msg->i_type], p_file );
+ LOG_STRING( p_msg->psz_msg, p_file );
+ LOG_STRING( "</font>\n", p_file );
+}
+