Defines | Functions | Variables
logging.c File Reference
#include <sys/param.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "logging.h"
#include "csm_all.h"
Include dependency graph for logging.c:

Go to the source code of this file.

Defines

#define MAX_CONTEXTS   1000
#define XTERM_COLOR_RED   "\e[1;37;41m"
#define XTERM_COLOR_RESET   "\e[0m"
#define XTERM_DEBUG   "\e[1;35;40m"
#define XTERM_ERROR   XTERM_COLOR_RED

Functions

void check_for_xterm_color ()
void sm_debug (const char *msg,...)
void sm_debug_write (int flag)
void sm_error (const char *msg,...)
void sm_info (const char *msg,...)
void sm_log_pop ()
void sm_log_push (const char *cname)
void sm_set_program_name (const char *name)
void sm_write_context ()

Variables

int checked_for_xterm_color = 0
int sm_debug_write_flag = 0
int sm_log_context = 0
const char * sm_log_context_name [MAX_CONTEXTS] = {""}
const char * sm_program_name = 0
char sm_program_name_temp [256]
int xterm_color_available = 0

Define Documentation

#define MAX_CONTEXTS   1000

Definition at line 114 of file logging.c.

#define XTERM_COLOR_RED   "\e[1;37;41m"

Definition at line 41 of file logging.c.

#define XTERM_COLOR_RESET   "\e[0m"

Definition at line 42 of file logging.c.

#define XTERM_DEBUG   "\e[1;35;40m"

Definition at line 45 of file logging.c.

Definition at line 44 of file logging.c.


Function Documentation

Definition at line 30 of file logging.c.

void sm_debug ( const char *  msg,
  ... 
)

Definition at line 88 of file logging.c.

void sm_debug_write ( int  flag)

Definition at line 16 of file logging.c.

void sm_error ( const char *  msg,
  ... 
)

Definition at line 49 of file logging.c.

void sm_info ( const char *  msg,
  ... 
)

Definition at line 71 of file logging.c.

void sm_log_pop ( )

Definition at line 130 of file logging.c.

void sm_log_push ( const char *  cname)

Definition at line 118 of file logging.c.

void sm_set_program_name ( const char *  name)

Definition at line 21 of file logging.c.

void sm_write_context ( )

Definition at line 135 of file logging.c.


Variable Documentation

Definition at line 26 of file logging.c.

Definition at line 12 of file logging.c.

int sm_log_context = 0

Definition at line 116 of file logging.c.

const char* sm_log_context_name[MAX_CONTEXTS] = {""}

Definition at line 115 of file logging.c.

const char* sm_program_name = 0

Definition at line 14 of file logging.c.

Definition at line 20 of file logging.c.

Definition at line 27 of file logging.c.



csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42