9#define MAX_LOG_FILES 10
10#define MAX_FILENAME_LENGTH 256
11#define BITLAB_LOG "bitlab.log"
12#define LOG_BITLAB_STARTED "BitLab started ----------------------------------------------------------------------------------------"
13#define LOG_BITLAB_FINISHED "BitLab finished successfully"
15#define LOCKED_FILE_RETRY_TIME 1000
16#define LOCKED_FILE_TIMEOUT 5000000
85void log_message(
log_level level,
const char* filename,
const char* source_file,
const char* format, ...);
void finish_logging()
Finish logging used to finish logging and close the log file.
void log_message(log_level level, const char *filename, const char *source_file, const char *format,...)
Log a message used to log a message to the console or a file.
void init_logging(const char *filename)
Initialize logging used to initialize the logging system, open and preserve the log file.
const char * create_logs_dir()
Create logs directory used to create the logs directory if it does not exist.
log_level
The log level enumeration used to define the level of logging that is being used.
The logger structure used to store the logger for the logging system.
The loggers structure used to store the loggers for the logging system.
logger * array[MAX_LOG_FILES]
pthread_mutex_t log_mutex