fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
log.h File Reference

Logging macros for the application. More...

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

Go to the source code of this file.

Macros

#define LOG_FILE_MACRO   __FILE__
 The file name macro used in log messages. Value varies depending on the availability of the shorter __FILE_NAME__ macro.
 
#define log_info(fmt, ...)
 Log an informational message.
 
#define log_verbose(fmt, ...)
 Log a verbose message. The caller is responsible for checking the verbose flag before calling this macro.
 
#define log_error(fmt, ...)
 Log an error message to stderr. This will not terminate the program.
 

Detailed Description

Logging macros for the application.

Macro Definition Documentation

◆ log_error

#define log_error ( fmt,
... )
Value:
fprintf(stderr, "[!] " fmt " [%s:%d]\n", __VA_ARGS__, LOG_FILE_MACRO, \
__LINE__)
#define LOG_FILE_MACRO
The file name macro used in log messages. Value varies depending on the availability of the shorter _...
Definition log.h:12

Log an error message to stderr. This will not terminate the program.

Note
A newline is appended to the message.

◆ LOG_FILE_MACRO

#define LOG_FILE_MACRO   __FILE__

The file name macro used in log messages. Value varies depending on the availability of the shorter __FILE_NAME__ macro.

◆ log_info

#define log_info ( fmt,
... )
Value:
printf(fmt " \n", __VA_ARGS__)

Log an informational message.

Note
A newline is appended to the message.

◆ log_verbose

#define log_verbose ( fmt,
... )
Value:
printf(fmt " \n", __VA_ARGS__)

Log a verbose message. The caller is responsible for checking the verbose flag before calling this macro.

Note
A newline is appended to the message.