mirror of
https://github.com/log-chipper/chipper.git
synced 2026-06-11 17:23:23 -05:00
4a0aabce43
- Simple unix daemon - Python, Go, and C client
14 lines
341 B
C
14 lines
341 B
C
#include "../clients/c/chipper_client.h"
|
|
|
|
int main(void) {
|
|
if (chipper_client_init("/tmp/chipper.sock", "myapp", "worker") != 0) {
|
|
return 1;
|
|
}
|
|
|
|
chipper_client_log("info", "hello from C client, user_id=%d", 42);
|
|
chipper_client_log("error", "something failed: %s", "oops");
|
|
|
|
chipper_client_close();
|
|
return 0;
|
|
}
|