|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#include <stdarg.h>#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include "src/internal_config.h"#include "src/xbt_modinter.h"#include "src/xbt/log_private.h"#include "xbt/asserts.h"#include "xbt/dynar.h"#include "xbt/ex.h"#include "xbt/misc.h"#include "xbt/str.h"#include "xbt/sysdep.h"#include "xbt/xbt_os_thread.h"Classes | |
| struct | s_xbt_log_setting_t |
Macros | |
| #define | XBT_LOG_STATIC_BUFFER_SIZE 2048 |
| #define | XBT_LOG_DYNAMIC_BUFFER_SIZE 4096 |
| #define | _xbt_log_cat_init(a, b) (0) |
| #define | _xbt_log_cat_init(a, b) (0) |
| #define | _xbt_log_cat_init(a, b) (0) |
Typedefs | |
| typedef struct s_xbt_log_setting_t * | xbt_log_setting_t |
Variables | |
| int | xbt_log_no_loc = 0 |
| static xbt_os_mutex_t | log_cat_init_mutex = NULL |
| xbt_log_appender_t | xbt_log_default_appender = NULL |
| xbt_log_layout_t | xbt_log_default_layout = NULL |
| static xbt_dynar_t | xbt_log_settings = NULL |
| const char * | xbt_log_priority_names [8] |
| #define XBT_LOG_STATIC_BUFFER_SIZE 2048 |
| #define XBT_LOG_DYNAMIC_BUFFER_SIZE 4096 |
| #define _xbt_log_cat_init | ( | a, | |
| b | |||
| ) | (0) |
| #define _xbt_log_cat_init | ( | a, | |
| b | |||
| ) | (0) |
| #define _xbt_log_cat_init | ( | a, | |
| b | |||
| ) | (0) |
| typedef struct s_xbt_log_setting_t * xbt_log_setting_t |
|
static |
| s_xbt_log_category_t _XBT_LOGV | ( | XBT_LOG_ROOT_CAT | ) |
| XBT_LOG_NEW_DEFAULT_SUBCATEGORY | ( | log | , |
| xbt | , | ||
| "Loggings from the logging mechanism itself" | |||
| ) |
| void xbt_log_init | ( | int * | argc, |
| char ** | argv | ||
| ) |
Get all logging settings from the command line.
xbt_log_control_set() is called on each string we got from cmd line
|
static |
| void _xbt_log_event_log | ( | xbt_log_event_t | ev, |
| const char * | fmt, | ||
| ... | |||
| ) |
| int _xbt_log_cat_init | ( | xbt_log_category_t | category, |
| e_xbt_log_priority_t | priority | ||
| ) |
| void xbt_log_parent_set | ( | xbt_log_category_t | cat, |
| xbt_log_category_t | parent | ||
| ) |
| cat | the category (not only its name, but the variable) |
| parent | the parent cat |
Programatically alter a category's parent (don't use).
|
static |
| void xbt_log_threshold_set | ( | xbt_log_category_t | cat, |
| e_xbt_log_priority_t | thresholdPriority | ||
| ) |
| cat | the category (not only its name, but the variable) |
| thresholdPriority | the priority |
Programatically alters a category's threshold priority (don't use).
|
static |
|
static |
| void xbt_log_appender_set | ( | xbt_log_category_t | cat, |
| xbt_log_appender_t | app | ||
| ) |
| cat | the category (not only its name, but the variable) |
| app | the appender |
Programatically sets the category's appender. (the preferred interface is through xbt_log_control_set())
| void xbt_log_layout_set | ( | xbt_log_category_t | cat, |
| xbt_log_layout_t | lay | ||
| ) |
| cat | the category (not only its name, but the variable) |
| lay | the layout |
Programatically sets the category's layout. (the preferred interface is through xbt_log_control_set())
| void xbt_log_additivity_set | ( | xbt_log_category_t | cat, |
| int | additivity | ||
| ) |
| cat | the category (not only its name, but the variable) |
| additivity | whether logging actions must be passed to parent. |
Programatically sets whether the logging actions must be passed to the parent category. (the preferred interface is through xbt_log_control_set())
|
static |
| int xbt_log_no_loc = 0 |
|
static |
| xbt_log_appender_t xbt_log_default_appender = NULL |
| xbt_log_layout_t xbt_log_default_layout = NULL |
|
static |
| const char* xbt_log_priority_names[8] |