init
This commit is contained in:
40
build/include/glacier/log.h
Normal file
40
build/include/glacier/log.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef LOG_H_
|
||||
#define LOG_H_
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _XOPEN_SOURCE 700
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <syslog.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "color.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
LG_INFO,
|
||||
LG_WARN,
|
||||
LG_ERR,
|
||||
LG_SUCCESS
|
||||
}
|
||||
loglevel_t;
|
||||
|
||||
int supports_utf8(void);
|
||||
const char *p2s(int priority);
|
||||
|
||||
void lg_printf(loglevel_t loglevel, const char *fmt, ...);
|
||||
void lg_syslog(int priority, const char *fmt, ...);
|
||||
void lg_log(bool use_syslog, FILE *logfile, int priority, const char *fmt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_H_ */
|
||||
BIN
build/lib/shared/lg_log.so
Executable file
BIN
build/lib/shared/lg_log.so
Executable file
Binary file not shown.
BIN
build/lib/shared/log.so
Executable file
BIN
build/lib/shared/log.so
Executable file
Binary file not shown.
BIN
build/lib/tmp/log.o
Normal file
BIN
build/lib/tmp/log.o
Normal file
Binary file not shown.
BIN
build/lib/tmp/make_conf.o
Normal file
BIN
build/lib/tmp/make_conf.o
Normal file
Binary file not shown.
BIN
build/lib/tmp/runtime.o
Normal file
BIN
build/lib/tmp/runtime.o
Normal file
Binary file not shown.
Reference in New Issue
Block a user