log.h File Reference

Header file for the logging subsystem. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HERAIA_LOG_DOMAIN   "Heraia"
 Defines heraia log domain (the one printed out on the logging window).

Functions

void print_message (const char *format,...)
 Prints a message to stdout.
void log_message (heraia_struct_t *main_struct, GLogLevelFlags log_level, const char *format,...)
 A function that helps logging a message a the specified level.
void log_window_init_interface (heraia_struct_t *main_struct)
 Inits the log window interface Called once at init time.
void show_hide_log_window (heraia_struct_t *main_struct, gboolean show, GtkCheckMenuItem *cmi)
 Shows and hides the log window.
void mw_cmi_show_logw_toggle (GtkWidget *widget, gpointer data)
 The Check menu item for the Log window.

Detailed Description

Header file for the logging subsystem.

Definition in file log.h.


Define Documentation

#define HERAIA_LOG_DOMAIN   "Heraia"

Defines heraia log domain (the one printed out on the logging window).

Definition at line 34 of file log.h.

Referenced by log_message().


Function Documentation

log_message ( heraia_struct_t main_struct,
GLogLevelFlags  log_level,
const char *  format,
  ... 
)

A function that helps logging a message a the specified level.

A wrapper to my_log function log_domain is defined by HERAIA_LOG_DOMAIN

Parameters:
main_struct : main structure
log_level : A string that may be either G_LOG_FLAG_RECURSION, G_LOG_FLAG_FATAL, G_LOG_LEVEL_ERROR, G_LOG_LEVEL_CRITICAL, G_LOG_LEVEL_WARNING, G_LOG_LEVEL_MESSAGE, G_LOG_LEVEL_INFO, G_LOG_LEVEL_DEBUG
format : a printf style format
... : va_list to fill the format.
Todo:
may be include the hability to choose a different log domain ?

Definition at line 174 of file log.c.

References heraia_struct_t::debug, HERAIA_LOG_DOMAIN, and my_log().

Referenced by get_plugin_handle(), get_plugin_init_symbol(), init(), init_heraia_plugin_system(), init_plugin(), init_plugin_name_tv(), load_file_to_analyse(), load_plugins(), main(), on_close_activate(), on_new_activate(), on_save_activate(), on_save_as_activate(), on_tests_menu_activate(), realize_some_numerical_stat(), and set_notebook_tab_label_color().

Here is the call graph for this function:

Here is the caller graph for this function:

log_window_init_interface ( heraia_struct_t main_struct  ) 

Inits the log window interface Called once at init time.

Parameters:
main_struct : main structure

Definition at line 364 of file log.c.

References heraia_get_widget(), log_window_connect_signals(), xml_t::main, and heraia_struct_t::xmls.

Referenced by load_heraia_ui().

Here is the call graph for this function:

Here is the caller graph for this function:

mw_cmi_show_logw_toggle ( GtkWidget *  widget,
gpointer  data 
)

The Check menu item for the Log window.

Parameters:
widget : the widget that issued the signal (here the log check menu item
data : user data, MUST be main_struct main structure

Definition at line 269 of file log.c.

References show_hide_log_window().

Referenced by log_window_connect_signals().

Here is the call graph for this function:

Here is the caller graph for this function:

print_message ( const char *  format,
  ... 
)

Prints a message to stdout.

Parameters:
format : a printf style format
... : va_list to fill the format.

Definition at line 44 of file log.c.

void show_hide_log_window ( heraia_struct_t main_struct,
gboolean  show,
GtkCheckMenuItem *  cmi 
)

Shows and hides the log window.

Parameters:
main_struct : main structure
show : a boolean to say whether we want to show (TRUE) or hide (FALSE) the window
cmi : the associated check menu item in the menu

Definition at line 240 of file log.c.

References window_prop_t::displayed, heraia_get_widget(), all_window_prop_t::log_box, xml_t::main, move_and_show_dialog_box(), record_and_hide_dialog_box(), heraia_struct_t::win_prop, and heraia_struct_t::xmls.

Referenced by logw_close_clicked(), and mw_cmi_show_logw_toggle().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Fri Aug 20 09:15:55 2010 for Heraia by  doxygen 1.6.3