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#pragma once
7
9#include <golioth/client.h>
10
16
28enum golioth_status golioth_log_error_async(struct golioth_client *client,
29 const char *tag,
30 const char *log_message,
31 golioth_set_cb_fn callback,
32 void *callback_arg);
33
35enum golioth_status golioth_log_warn_async(struct golioth_client *client,
36 const char *tag,
37 const char *log_message,
38 golioth_set_cb_fn callback,
39 void *callback_arg);
40
42enum golioth_status golioth_log_info_async(struct golioth_client *client,
43 const char *tag,
44 const char *log_message,
45 golioth_set_cb_fn callback,
46 void *callback_arg);
47
49enum golioth_status golioth_log_debug_async(struct golioth_client *client,
50 const char *tag,
51 const char *log_message,
52 golioth_set_cb_fn callback,
53 void *callback_arg);
54
67enum golioth_status golioth_log_error_sync(struct golioth_client *client,
68 const char *tag,
69 const char *log_message,
70 int32_t timeout_s);
71
73enum golioth_status golioth_log_warn_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_info_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_debug_sync(struct golioth_client *client,
86 const char *tag,
87 const char *log_message,
88 int32_t timeout_s);
89
golioth_status
void(* golioth_set_cb_fn)(struct golioth_client *client, const struct golioth_response *response, const char *path, void *arg)
Definition client.h:172
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.