-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
34 lines (30 loc) · 901 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
LOGPOOL
=========================
-------------------------
Logging API
-------------------------
logpool_t *logpool_open_trace(logpool_t *parent, char *host, int port);
void logpool_close(logpool_t *p);
void logpool_record(logpool_t *logpool, void *args, int priority, char *trace_id, ...);
struct logdata {
long type;
short klen;
short vlen;
char *key;
char *val;
};
void logpool_record_list(logpool_t *ctx, void *args, int priority,
char *trace_id, int logsize, struct logdata *logs);
-------------------------
HOW_TO_COMPILE
-------------------------
$ mkdir Release
$ cmake -DCMAKE_BUILD_TYPE=Release && make
$ make
-------------------------
HOW_TO_EXEC
-------------------------
$ memcached -d
$ ./Release/logpoold >& logpoold.log &
$ ./Release/example1 Release/mod_example.bc >& example1.log &
$ ./Release/test_trace