Loading...
Searching...
No Matches
yder.h
Go to the documentation of this file.
#ifndef __YDER_H__
#define __YDER_H__
#ifdef __cplusplus
extern "C"
{
#endif
#include "yder-cfg.h"
#include <time.h>
#define Y_LOG_MODE_NONE 0x00000000
#define Y_LOG_MODE_CONSOLE 0x000000F0
#define Y_LOG_MODE_SYSLOG 0x00000F00
#define Y_LOG_MODE_FILE 0x0000F000
#define Y_LOG_MODE_JOURNALD 0x000F0000
#define Y_LOG_MODE_CALLBACK 0x00F00000
#define Y_LOG_MODE_CURRENT 0xFFFFFFFF
#define Y_LOG_LEVEL_NONE 0x0000
#define Y_LOG_LEVEL_ERROR 0x000F
#define Y_LOG_LEVEL_WARNING 0x00F0
#define Y_LOG_LEVEL_INFO 0x0F00
#define Y_LOG_LEVEL_DEBUG 0xF000
#define Y_LOG_LEVEL_CURRENT 0xFFFF
#define Y_SPLIT_CURRENT -1
int y_init_logs(const char * app, const unsigned long init_mode, const unsigned long init_level, const char * init_log_file, const char * message);
int y_set_logs_callback(void (* y_callback_log_message) (void * cls, const char * app_name, const time_t date, const unsigned long level, const char * message),
void * cls,
const char * message);
int y_set_date_format(const char * format, const char * message);
int y_set_split_message_newline(int split, const char * message);
int y_close_logs(void);
void y_log_message(const unsigned long type, const char * message, ...);
#ifdef __cplusplus
}
#endif
#endif // __YDER_H__
y_set_split_message_newline
int y_set_split_message_newline(int split, const char *message)
Definition yder.c:389
y_set_logs_callback
int y_set_logs_callback(void(*y_callback_log_message)(void *cls, const char *app_name, const time_t date, const unsigned long level, const char *message), void *cls, const char *message)
Definition yder.c:371
y_init_logs
int y_init_logs(const char *app, const unsigned long init_mode, const unsigned long init_level, const char *init_log_file, const char *message)
Definition yder.c:353
y_set_date_format
int y_set_date_format(const char *format, const char *message)
Definition yder.c:381
y_close_logs
int y_close_logs(void)
Definition yder.c:393
y_log_message
void y_log_message(const unsigned long type, const char *message,...)
Definition yder.c:397