Logo Search packages:      
Sourcecode: galago-daemon version File versions  Download package

logging.c File Reference

Detailed Description

Debug logging support

Copyright (C) 2004-2006 Christian Hammond.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file logging.c.

#include <libgalago/galago.h>
#include <stdio.h>
#include "logging.h"

Go to the source code of this file.


void galagod_logging_set_filename (const char *filename)
void galagod_logging_set_verbose (gboolean verbose)
void galagod_logging_start (void)
void galagod_logging_stop (void)
static const gchar * get_log_level_name (GLogLevelFlags log_level)
static void log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
static void output_log_info (FILE *fp, const gchar *log_domain, GLogLevelFlags log_level, const gchar *message)


static guint _domain_log_handler_id = 0
static char * _filename = NULL
static FILE * _fp = NULL
static guint _galago_log_handler_id = 0
static guint _glib_log_handler_id = 0
static gboolean _verbose = FALSE

Generated by  Doxygen 1.6.0   Back to index