/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/utils/eh_logging.h File Reference

#include <stdio.h>
#include <glib.h>
#include <string.h>
#include <stdarg.h>

Go to the source code of this file.

Defines

#define EH_LOG_LEVEL_DATA   (1<<G_LOG_LEVEL_USER_SHIFT)
#define DEFAULT_LOG   "stdout"
#define DEFAULT_ERROR_LOG   "stderr"
#define EH_LOG_DOMAIN   ((gchar*)0)

Functions

FILE * eh_open_log (const char *log_name)
void eh_close_log (const char *log_name)
void eh_print_log (const char *log_name, const char *message,...)
FILE * eh_open_log_file (const char *log_name)
void eh_reset_log (const char *log_file)
void eh_redirect_log (const char *log_file1, const char *log_file2)
void eh_set_ignore_log_level (GLogLevelFlags ignore)
GLogLevelFlags eh_set_verbosity_level (gint verbosity)
void eh_logger (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)


Define Documentation

#define DEFAULT_ERROR_LOG   "stderr"

Definition at line 32 of file eh_logging.h.

Referenced by main().

#define DEFAULT_LOG   "stdout"

Definition at line 31 of file eh_logging.h.

Referenced by sed_process_run_now().

#define EH_LOG_DOMAIN   ((gchar*)0)

Definition at line 67 of file eh_logging.h.

#define EH_LOG_LEVEL_DATA   (1<<G_LOG_LEVEL_USER_SHIFT)

Definition at line 29 of file eh_logging.h.

Referenced by eh_logger().


Function Documentation

void eh_close_log ( const char *  log_name  ) 

Definition at line 137 of file eh_logging.c.

References _log_files_.

void eh_logger ( const gchar *  log_domain,
GLogLevelFlags  log_level,
const gchar *  message,
gpointer  user_data 
)

Definition at line 208 of file eh_logging.c.

References eh_exit(), eh_free, EH_LOG_LEVEL_DATA, and eh_new.

Referenced by main(), sed_process_scan(), and sedflux_setup().

FILE* eh_open_log ( const char *  log_name  ) 

Definition at line 31 of file eh_logging.c.

References _log_file_code_, _log_files_, eh_free, and eh_str_case_equal().

Referenced by eh_open_log_file(), eh_print_log(), eh_redirect_log(), and main().

FILE* eh_open_log_file ( const char *  log_name  ) 

Definition at line 85 of file eh_logging.c.

References eh_exit(), and eh_open_log().

Referenced by sed_process_scan().

void eh_print_log ( const char *  log_name,
const char *  message,
  ... 
)

Definition at line 113 of file eh_logging.c.

References _log_files_, eh_free, and eh_open_log().

Referenced by main().

void eh_redirect_log ( const char *  log_file1,
const char *  log_file2 
)

Definition at line 148 of file eh_logging.c.

References _log_files_, and eh_open_log().

Referenced by sed_process_run_now().

void eh_reset_log ( const char *  log_file  ) 

Definition at line 160 of file eh_logging.c.

References _log_files_.

Referenced by sed_process_run_now().

void eh_set_ignore_log_level ( GLogLevelFlags  ignore  ) 

Definition at line 171 of file eh_logging.c.

Referenced by eh_set_verbosity_level().

GLogLevelFlags eh_set_verbosity_level ( gint  verbosity  ) 

Definition at line 177 of file eh_logging.c.

References eh_set_ignore_log_level().

Referenced by main(), and sedflux_parse_command_line().


Generated on Fri Jan 4 18:04:18 2008 for sedflux by  doxygen 1.5.2