FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_log.h File Reference
#include <stdarg.h>
Include dependency graph for hecmw_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HECMW_LOG_MAX   10
 
#define HECMW_LOG_NONE   0
 
#define HECMW_LOG_ERROR   1
 
#define HECMW_LOG_WARN   2
 
#define HECMW_LOG_INFO   4
 
#define HECMW_LOG_DEBUG   8
 
#define HECMW_LOG_ALL   (HECMW_LOG_ERROR | HECMW_LOG_WARN | HECMW_LOG_INFO | HECMW_LOG_DEBUG)
 
#define HECMW_LOG_PERROR   1
 
#define HECMW_LOG_OPTALL   (HECMW_LOG_PERROR)
 

Functions

int HECMW_openlog (const char *logfile, int loglv, int options)
 
int HECMW_closelog (int id)
 
int HECMW_vlog (int loglv, const char *fmt, va_list ap)
 
int HECMW_log (int loglv, const char *fmt,...)
 
void HECMW_setloglv (int loglv)
 
void HECMW_log_set_enable (int from, int to, int true_or_false)
 

Macro Definition Documentation

◆ HECMW_LOG_ALL

#define HECMW_LOG_ALL   (HECMW_LOG_ERROR | HECMW_LOG_WARN | HECMW_LOG_INFO | HECMW_LOG_DEBUG)

Definition at line 23 of file hecmw_log.h.

◆ HECMW_LOG_DEBUG

#define HECMW_LOG_DEBUG   8

Definition at line 21 of file hecmw_log.h.

◆ HECMW_LOG_ERROR

#define HECMW_LOG_ERROR   1

Definition at line 15 of file hecmw_log.h.

◆ HECMW_LOG_INFO

#define HECMW_LOG_INFO   4

Definition at line 19 of file hecmw_log.h.

◆ HECMW_LOG_MAX

#define HECMW_LOG_MAX   10

Definition at line 11 of file hecmw_log.h.

◆ HECMW_LOG_NONE

#define HECMW_LOG_NONE   0

Definition at line 13 of file hecmw_log.h.

◆ HECMW_LOG_OPTALL

#define HECMW_LOG_OPTALL   (HECMW_LOG_PERROR)

Definition at line 28 of file hecmw_log.h.

◆ HECMW_LOG_PERROR

#define HECMW_LOG_PERROR   1

Definition at line 26 of file hecmw_log.h.

◆ HECMW_LOG_WARN

#define HECMW_LOG_WARN   2

Definition at line 17 of file hecmw_log.h.

Function Documentation

◆ HECMW_closelog()

int HECMW_closelog ( int  id)

Definition at line 130 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_log()

int HECMW_log ( int  loglv,
const char *  fmt,
  ... 
)

Definition at line 260 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_log_set_enable()

void HECMW_log_set_enable ( int  from,
int  to,
int  true_or_false 
)

Definition at line 269 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_openlog()

int HECMW_openlog ( const char *  logfile,
int  loglv,
int  options 
)

Definition at line 64 of file hecmw_log.c.

◆ HECMW_setloglv()

void HECMW_setloglv ( int  loglv)

Definition at line 57 of file hecmw_log.c.

Here is the caller graph for this function:

◆ HECMW_vlog()

int HECMW_vlog ( int  loglv,
const char *  fmt,
va_list  ap 
)

Definition at line 223 of file hecmw_log.c.

Here is the caller graph for this function: