Arduino AudioKit HAL
src
audiokit_logger.h
Go to the documentation of this file.
1
/**
2
* @file audiokit_logger.h
3
* @author your name (you@domain.com)
4
* @brief Simple Logger we need to support both C and C++
5
* @date 2021-12-12
6
*
7
* @copyright Copyright (c) 2021
8
*/
9
10
#pragma once
11
12
// maximum size of log string
13
#define AUDIOKIT_LOGLENGTH 215
14
15
// Logging of method
16
#define LOG_METHOD __PRETTY_FUNCTION__
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
// define supported log levels
23
enum
AudioKitLogLevels {Debug, Info, Warning, Error};
24
25
// define default log level
26
extern
int
AUDIOKIT_LOG_LEVEL;
27
28
void
KIT_LOGD(
const
char
* fmr,...);
29
void
KIT_LOGI(
const
char
* fmr,...);
30
void
KIT_LOGW(
const
char
* fmr,...);
31
void
KIT_LOGE(
const
char
* fmr,...);
32
33
#ifdef __cplusplus
34
}
35
#endif
Generated by
1.9.1