Golioth Firmware SDK
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Golioth, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifdef __cplusplus
8extern "C"
9{
10#endif
11
12#pragma once
13
15#include <golioth/client.h>
16
22
34enum golioth_status golioth_log_error_async(struct golioth_client *client,
35 const char *tag,
36 const char *log_message,
37 golioth_set_cb_fn callback,
38 void *callback_arg);
39
41enum golioth_status golioth_log_warn_async(struct golioth_client *client,
42 const char *tag,
43 const char *log_message,
44 golioth_set_cb_fn callback,
45 void *callback_arg);
46
48enum golioth_status golioth_log_info_async(struct golioth_client *client,
49 const char *tag,
50 const char *log_message,
51 golioth_set_cb_fn callback,
52 void *callback_arg);
53
55enum golioth_status golioth_log_debug_async(struct golioth_client *client,
56 const char *tag,
57 const char *log_message,
58 golioth_set_cb_fn callback,
59 void *callback_arg);
60
73enum golioth_status golioth_log_error_sync(struct golioth_client *client,
74 const char *tag,
75 const char *log_message,
76 int32_t timeout_s);
77
79enum golioth_status golioth_log_warn_sync(struct golioth_client *client,
80 const char *tag,
81 const char *log_message,
82 int32_t timeout_s);
83
85enum golioth_status golioth_log_info_sync(struct golioth_client *client,
86 const char *tag,
87 const char *log_message,
88 int32_t timeout_s);
89
91enum golioth_status golioth_log_debug_sync(struct golioth_client *client,
92 const char *tag,
93 const char *log_message,
94 int32_t timeout_s);
95
97
98#ifdef __cplusplus
99}
100#endif
golioth_status
void(* golioth_set_cb_fn)(struct golioth_client *client, const struct golioth_response *response, const char *path, void *arg)
Definition client.h:179
enum golioth_status golioth_log_warn_sync(struct golioth_client *client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for warning level.
enum golioth_status golioth_log_info_sync(struct golioth_client *client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for info level.
enum golioth_status golioth_log_info_async(struct golioth_client *client, const char *tag, const char *log_message, golioth_set_cb_fn callback, void *callback_arg)
Same as golioth_log_error_async, but for info level.
enum golioth_status golioth_log_error_async(struct golioth_client *client, const char *tag, const char *log_message, golioth_set_cb_fn callback, void *callback_arg)
enum golioth_status golioth_log_warn_async(struct golioth_client *client, const char *tag, const char *log_message, golioth_set_cb_fn callback, void *callback_arg)
Same as golioth_log_error_async, but for warning level.
enum golioth_status golioth_log_debug_sync(struct golioth_client *client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for debug level.
enum golioth_status golioth_log_error_sync(struct golioth_client *client, const char *tag, const char *log_message, int32_t timeout_s)
enum golioth_status golioth_log_debug_async(struct golioth_client *client, const char *tag, const char *log_message, golioth_set_cb_fn callback, void *callback_arg)
Same as golioth_log_error_async, but for debug level.