1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#include "mos-syslog.h"
4
5#include <librpc/rpc_client.h>
6#include <stdio.h>
7
8int main()
9{
10 rpc_server_stub_t *logger = rpc_client_create(SYSLOGD_SERVICE_NAME);
11 if (!logger)
12 {
13 fprintf(stream: stderr, format: "failed to create rpc client\n");
14 return 1;
15 }
16
17 syslogd_log(server_stub: logger, message: "Hello from syslog-test!");
18 syslogd_logc(server_stub: logger, category: "ERROR", message: "Hello from syslog-test!");
19}
20