logger.cpp revision 360aad676ba92ca443083da298b766628f6a3bfb
/*
* Inkscape::Debug::Logger - debug logging facility
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2005 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <fstream>
#include <vector>
#include <glib/gmessages.h>
#include "debug/simple-event.h"
#include "gc-alloc.h"
namespace Inkscape {
namespace Debug {
namespace {
switch (*current) {
case '&':
os << "&";
break;
case '"':
os << """;
break;
case '\'':
os << "'";
break;
case '<':
os << "<";
break;
case '>':
os << ">";
break;
default:
}
}
}
for ( unsigned i = 0 ; i < depth ; i++ ) {
}
}
static bool empty_tag=false;
typedef std::vector<Util::ptr_shared<char>, GC::Alloc<Util::ptr_shared<char>, GC::MANUAL> > TagStack;
return stack;
}
static void do_shutdown() {
}
static bool equal_range(char const *c_string,
{
}
if (!filter) {
for ( unsigned i = 0 ; i < Event::N_CATEGORIES ; i++ ) {
mask[i] = true;
}
return;
} else {
for ( unsigned i = 0 ; i < Event::N_CATEGORIES ; i++ ) {
mask[i] = false;
}
}
char const *start;
char const *end;
while (*end) {
} else {
}
}
if (*end) {
}
}
}
}
if (!_enabled) {
if (log_filename) {
if (log_stream.is_open()) {
log_stream << "<?xml version=\"1.0\"?>\n";
log_stream.flush();
_enabled = true;
}
}
}
}
if (empty_tag) {
log_stream << ">\n";
}
for ( unsigned i = 0 ; i < property_count ; i++ ) {
log_stream << "\"";
}
log_stream.flush();
empty_tag = true;
}
}
if (empty_tag) {
log_stream << "/>\n";
} else {
}
log_stream.flush();
empty_tag = false;
}
}
if (_enabled) {
finish();
}
}
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :