Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c175e0b1
Commit
c175e0b1
authored
Sep 13, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes logger html output « Valid HTML 4.01 Strict! », thanks to dionoea
parent
65ffd1f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/misc/logger.c
modules/misc/logger.c
+9
-7
No files found.
modules/misc/logger.c
View file @
c175e0b1
...
@@ -53,12 +53,14 @@
...
@@ -53,12 +53,14 @@
#define TEXT_FOOTER "-- logger module stopped --\n"
#define TEXT_FOOTER "-- logger module stopped --\n"
#define HTML_HEADER \
#define HTML_HEADER \
"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\"\n" \
" \"http:\/\/www.w3.org/TR/html4/strict.dtd\">\n" \
"<html>\n" \
"<html>\n" \
" <head>\n" \
" <head>\n" \
" <title>vlc log</title>\n" \
" <title>vlc log</title>\n" \
" <
META
http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" \
" <
meta
http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" \
" </head>\n" \
" </head>\n" \
" <body
bgcolor=\"#000000\" text=\"#aaaaaa
\">\n" \
" <body
style=\"background-color: #000000; color: #aaaaaa;
\">\n" \
" <pre>\n" \
" <pre>\n" \
" <b>-- logger module started --</b>\n"
" <b>-- logger module started --</b>\n"
#define HTML_FOOTER \
#define HTML_FOOTER \
...
@@ -418,16 +420,16 @@ static void SyslogPrint( const msg_item_t *p_msg )
...
@@ -418,16 +420,16 @@ static void SyslogPrint( const msg_item_t *p_msg )
static
void
HtmlPrint
(
const
msg_item_t
*
p_msg
,
FILE
*
p_file
)
static
void
HtmlPrint
(
const
msg_item_t
*
p_msg
,
FILE
*
p_file
)
{
{
static
const
char
*
ppsz_color
[
4
]
=
{
"<
font color=
\"
#ffffff
\"
>"
,
static
const
char
*
ppsz_color
[
4
]
=
{
"<
span style=
\"
color:
#ffffff
\"
>"
,
"<
font color=
\"
#ff6666
\"
>"
,
"<
span style=
\"
color:
#ff6666
\"
>"
,
"<
font color=
\"
#ffff66
\"
>"
,
"<
span style=
\"
color:
#ffff66
\"
>"
,
"<
font color=
\"
#aaaaaa
\"
>"
};
"<
span style=
\"
color:
#aaaaaa
\"
>"
};
LOG_STRING
(
p_msg
->
psz_module
,
p_file
);
LOG_STRING
(
p_msg
->
psz_module
,
p_file
);
LOG_STRING
(
ppsz_type
[
p_msg
->
i_type
],
p_file
);
LOG_STRING
(
ppsz_type
[
p_msg
->
i_type
],
p_file
);
LOG_STRING
(
ppsz_color
[
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
(
p_msg
->
psz_msg
,
p_file
);
LOG_STRING
(
"</
font
>
\n
"
,
p_file
);
LOG_STRING
(
"</
span
>
\n
"
,
p_file
);
}
}
static
void
DoRRD
(
intf_thread_t
*
p_intf
)
static
void
DoRRD
(
intf_thread_t
*
p_intf
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment