23 #include "startpage_processor.h" 24 #include <webview/page_reply.h> 26 #include <logging/cache.h> 44 __cache_logger = cache_logger;
57 if ( strncmp(
"/", request->
url().c_str(), 1) == 0 ) {
61 std::list<CacheLogger::CacheEntry> & messages = __cache_logger->get_messages();
62 std::list<CacheLogger::CacheEntry>::reverse_iterator i;
64 *r +=
"<h2>Latest log messages</h2>\n";
66 for (i = messages.rbegin(); i != messages.rend(); ++i) {
68 const char *color = NULL;
76 r->
append_body(
"<tr><td>%s</td><td>%s</td><td><span style=\"color:%s\">%s</span></td></tr>\n",
79 r->
append_body(
"<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n",
Fawkes library namespace.
std::string timestr
Time encoded as string.
warning, should be investigated but software still functions, an example is that something was reques...
LogLevel log_level
log level
error, may be recoverable (software still running) or not (software has to terminate).
Web request meta data carrier.
debug output, relevant only when tracking down problems
std::string message
Message.
void append_body(const char *format,...)
Append to body.
std::string component
component
const std::string & url() const
Get URL.