SimGrid
3.18
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 | DISABLE_XBT_LOG_CAT_INIT() int (*_xbt_log_cat_init)(xbt_log_category_t, e_xbt_log_priority_t) XBT_ATTRIB_UNUSED = fake_xbt_log_cat_init; |
Typedefs | |
typedef 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 DISABLE_XBT_LOG_CAT_INIT | ( | ) | int (*_xbt_log_cat_init)(xbt_log_category_t, e_xbt_log_priority_t) XBT_ATTRIB_UNUSED = fake_xbt_log_cat_init; |
typedef 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, | ||
... | |||
) |
|
static |
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] |