Internal log util for NNStreamer plugins and native APIs. More...
#include <stdlib.h>
#include <glib.h>
Go to the source code of this file.
Macros | |
#define | TAG_NAME "nnstreamer" |
#define | ml_logi g_info |
#define | ml_logw g_warning |
#define | ml_loge g_critical |
#define | ml_logd g_debug |
#define | ml_logf g_error |
#define | GST_ELEMENT_ERROR_BTRACE(s, errtype, errcode, mesg) |
#define | ml_logf_stacktrace(...) |
#define | ml_log_stacktrace(logfunc, ...) |
#define | ml_loge_stacktrace(...) ml_log_stacktrace(ml_loge, __VA_ARGS__) |
#define | nns_logi ml_logi |
#define | nns_logw ml_logw |
#define | nns_loge ml_loge |
#define | nns_logd ml_logd |
#define | nns_logf ml_logf |
Functions | |
char * | _backtrace_to_string (void) |
stack trace as a string for error messages More... | |
const char * | _nnstreamer_error (void) |
return the last internal error string and clean it. More... | |
void | _nnstreamer_error_write (const char *fmt,...) |
overwrites the error message buffer with the new message. More... | |
void | _nnstreamer_error_clean (void) |
cleans up the error message buffer. More... | |
Internal log util for NNStreamer plugins and native APIs.
Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2.1 of the License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
Definition in file nnstreamer_log.h.
#define GST_ELEMENT_ERROR_BTRACE | ( | s, | |
errtype, | |||
errcode, | |||
mesg | |||
) |
Definition at line 94 of file nnstreamer_log.h.
#define ml_log_stacktrace | ( | logfunc, | |
... | |||
) |
Definition at line 111 of file nnstreamer_log.h.
#define ml_logd g_debug |
Definition at line 79 of file nnstreamer_log.h.
#define ml_loge g_critical |
Definition at line 78 of file nnstreamer_log.h.
#define ml_loge_stacktrace | ( | ... | ) | ml_log_stacktrace(ml_loge, __VA_ARGS__) |
Definition at line 119 of file nnstreamer_log.h.
#define ml_logf g_error |
Definition at line 80 of file nnstreamer_log.h.
#define ml_logf_stacktrace | ( | ... | ) |
Definition at line 102 of file nnstreamer_log.h.
#define ml_logi g_info |
Definition at line 76 of file nnstreamer_log.h.
#define ml_logw g_warning |
Definition at line 77 of file nnstreamer_log.h.
#define nns_logd ml_logd |
Definition at line 143 of file nnstreamer_log.h.
#define nns_loge ml_loge |
Definition at line 142 of file nnstreamer_log.h.
#define nns_logf ml_logf |
Definition at line 144 of file nnstreamer_log.h.
#define nns_logi ml_logi |
Definition at line 140 of file nnstreamer_log.h.
#define nns_logw ml_logw |
Definition at line 141 of file nnstreamer_log.h.
#define TAG_NAME "nnstreamer" |
Definition at line 28 of file nnstreamer_log.h.
char* _backtrace_to_string | ( | void | ) |
stack trace as a string for error messages
Definition at line 35 of file nnstreamer_log.c.
const char* _nnstreamer_error | ( | void | ) |
return the last internal error string and clean it.
Definition at line 81 of file nnstreamer_log.c.
void _nnstreamer_error_clean | ( | void | ) |
cleans up the error message buffer.
Definition at line 120 of file nnstreamer_log.c.
void _nnstreamer_error_write | ( | const char * | fmt, |
... | |||
) |
overwrites the error message buffer with the new message.