2017-07-26 11:31:56 +00:00
|
|
|
#ifndef OD_LOG_SYSTEM_H
|
|
|
|
#define OD_LOG_SYSTEM_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Odissey.
|
|
|
|
*
|
|
|
|
* Advanced PostgreSQL connection pooler.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct od_logsystem od_logsystem_t;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
OD_LOGSYSTEM_INFO,
|
|
|
|
OD_LOGSYSTEM_ERROR,
|
|
|
|
OD_LOGSYSTEM_DEBUG
|
|
|
|
} od_logsystem_prio_t;
|
|
|
|
|
|
|
|
struct od_logsystem
|
|
|
|
{
|
|
|
|
int in_use;
|
|
|
|
};
|
|
|
|
|
|
|
|
void od_logsystem_init(od_logsystem_t*);
|
|
|
|
int od_logsystem_open(od_logsystem_t*, char*, char*);
|
|
|
|
void od_logsystem_close(od_logsystem_t*);
|
2017-07-26 14:05:29 +00:00
|
|
|
void od_logsystem(od_logsystem_t*, od_logsystem_prio_t, char*, int);
|
2017-07-26 11:31:56 +00:00
|
|
|
|
|
|
|
#endif
|