5 #include "cFileLogReceiver.h" 7 #if CAUDIO_COMPILE_WITH_FILE_LOG_RECEIVER == 1 13 cFileLogReceiver::cFileLogReceiver(
const char *lFilePath) :
14 logFilePath(lFilePath)
19 cFileLogReceiver::~cFileLogReceiver()
24 bool cFileLogReceiver::OnLogMessage(
const char* sender,
const char* message,
LogLevel level,
float time)
28 if(firsttime ==
false)
33 outf.setf( std::ios::fixed );
35 outf.open( logFilePath, std::ios::out );
43 outf<<
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
44 outf<<
"<title>cAudio Log</title>\n";
45 outf<<
"<style type=\"text/css\">\n";
47 outf<<
"body, html {\n";
48 outf<<
"background: #000000;\n";
49 outf<<
"width: 1000px;\n";
50 outf<<
"font-family: Arial;\n";
51 outf<<
"font-size: 16px;\n";
52 outf<<
"color: #C0C0C0;\n";
56 outf<<
"color : #FFFFFF;\n";
57 outf<<
"border-bottom : 1px dotted #888888;\n";
61 outf<<
"font-family : arial;\n";
62 outf<<
"margin : 0;\n";
66 outf<<
"border : 1px dotted #818286;\n";
67 outf<<
"padding : 5px;\n";
68 outf<<
"margin: 5px;\n";
69 outf<<
"width: 950px;\n";
70 outf<<
"background-color : #292929;\n";
74 outf<<
"color: #EE1100;\n";
75 outf<<
"font-weight: bold\n";
79 outf<<
"color: #FFCC00;\n";
80 outf<<
"font-weight: bold\n";
84 outf<<
"color: #BB0077;\n";
85 outf<<
"font-weight: bold\n";
89 outf<<
"color: #C0C0C0;\n";
93 outf<<
"color: #CCA0A0;\n";
100 outf<<
"<h1>cAudio Log</h1>\n";
101 outf<<
"<h3>" <<
"2.3.0" <<
"</h3>\n";
102 outf<<
"<div class=\"box\">\n";
112 outf.open( logFilePath, std::ios::out | std::ios::app );
119 outf<<
"<td width=\"100\">";
122 outf<<
"<td class=\"";
156 outf<<
"\n</pre></td>\n";
LogLevel
Enum of all supported log levels in cAudio.
Main namespace for the entire cAudio library.