Golioth Firmware SDK
golioth_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 
8 #include "golioth_status.h"
9 #include "golioth_client.h"
10 
16 
29  golioth_client_t client,
30  const char* tag,
31  const char* log_message,
32  golioth_set_cb_fn callback,
33  void* callback_arg);
34 
37  golioth_client_t client,
38  const char* tag,
39  const char* log_message,
40  golioth_set_cb_fn callback,
41  void* callback_arg);
42 
45  golioth_client_t client,
46  const char* tag,
47  const char* log_message,
48  golioth_set_cb_fn callback,
49  void* callback_arg);
50 
53  golioth_client_t client,
54  const char* tag,
55  const char* log_message,
56  golioth_set_cb_fn callback,
57  void* callback_arg);
58 
72  golioth_client_t client,
73  const char* tag,
74  const char* log_message,
75  int32_t timeout_s);
76 
79  golioth_client_t client,
80  const char* tag,
81  const char* log_message,
82  int32_t timeout_s);
83 
86  golioth_client_t client,
87  const char* tag,
88  const char* log_message,
89  int32_t timeout_s);
90 
93  golioth_client_t client,
94  const char* tag,
95  const char* log_message,
96  int32_t timeout_s);
97 
golioth_status_t
void * golioth_client_t
Opaque handle to the Golioth client.
void(* golioth_set_cb_fn)(golioth_client_t client, const golioth_response_t *response, const char *path, void *arg)
golioth_status_t golioth_log_info_sync(golioth_client_t client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for info level.
golioth_status_t golioth_log_info_async(golioth_client_t 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.
golioth_status_t golioth_log_error_async(golioth_client_t client, const char *tag, const char *log_message, golioth_set_cb_fn callback, void *callback_arg)
golioth_status_t golioth_log_error_sync(golioth_client_t client, const char *tag, const char *log_message, int32_t timeout_s)
golioth_status_t golioth_log_debug_sync(golioth_client_t client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for debug level.
golioth_status_t golioth_log_warn_sync(golioth_client_t client, const char *tag, const char *log_message, int32_t timeout_s)
Same as golioth_log_error_sync, but for warning level.
golioth_status_t golioth_log_debug_async(golioth_client_t 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.
golioth_status_t golioth_log_warn_async(golioth_client_t 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.