LibJuno 0.42.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
log_api.h
Go to the documentation of this file.
1/*
2 MIT License
3
4 Copyright (c) 2025 Robin A. Onsay
5
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files
8 (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge,
10 publish, distribute, sublicense, and/or sell copies of the Software,
11 and to permit persons to whom the Software is furnished to do so,
12 subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
16*/
17
27#ifndef JUNO_LOG_API_H
28#define JUNO_LOG_API_H
29#include "juno/status.h"
30#include "juno/module.h"
31#ifdef __cplusplus
32extern "C"
33{
34#endif
35
37
38typedef union JUNO_LOG_TAG JUNO_LOG_T;
39typedef struct JUNO_LOG_ROOT_TAG JUNO_LOG_ROOT_T;
40
42
44{
45 JUNO_STATUS_T (*LogDebug)(JUNO_LOG_T *ptJunoLog, const char *pcMsg, ...);
46 JUNO_STATUS_T (*LogInfo)(JUNO_LOG_T *ptJunoLog, const char *pcMsg, ...);
47 JUNO_STATUS_T (*LogWarning)(JUNO_LOG_T *ptJunoLog, const char *pcMsg, ...);
48 JUNO_STATUS_T (*LogError)(JUNO_LOG_T *ptJunoLog, const char *pcMsg, ...);
49};
50
51#ifdef __cplusplus
52}
53#endif
54#endif // JUNO_LOG_API_H
struct JUNO_LOG_ROOT_TAG JUNO_LOG_ROOT_T
Definition log_api.h:39
union JUNO_LOG_TAG JUNO_LOG_T
Definition log_api.h:38
#define JUNO_MODULE_EMPTY
Definition module.h:126
#define JUNO_MODULE_ROOT(API_T,...)
Definition module.h:182
int32_t JUNO_STATUS_T
Definition status.h:23
Definition log_api.h:44
JUNO_STATUS_T(* LogWarning)(JUNO_LOG_T *ptJunoLog, const char *pcMsg,...)
Definition log_api.h:47
JUNO_STATUS_T(* LogInfo)(JUNO_LOG_T *ptJunoLog, const char *pcMsg,...)
Definition log_api.h:46
JUNO_STATUS_T(* LogError)(JUNO_LOG_T *ptJunoLog, const char *pcMsg,...)
Definition log_api.h:48
JUNO_STATUS_T(* LogDebug)(JUNO_LOG_T *ptJunoLog, const char *pcMsg,...)
Definition log_api.h:45