arduino-audio-tools
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
f
g
i
m
p
r
s
t
u
v
w
Functions
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
i
l
m
n
p
r
s
t
u
v
w
x
y
Enumerations
Related Symbols
Files
File List
File Members
All
Functions
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Friends
Modules
Pages
Loading...
Searching...
No Matches
src
AudioTools
CoreAudio
AudioLoggerIDF.h
1
#pragma once
2
3
#include "AudioToolsConfig.h"
4
#include "esp_log.h"
5
6
#if USE_AUDIO_LOGGING
7
8
#ifndef LOG_METHOD
9
# define LOG_METHOD __PRETTY_FUNCTION__
10
#endif
11
12
#define TAG_AUDIO "audio-tools"
13
14
#define LOGD(...) ESP_LOGD(TAG_AUDIO,__VA_ARGS__);
15
#define LOGI(...) ESP_LOGI(TAG_AUDIO,__VA_ARGS__);
16
#define LOGW(...) ESP_LOGW(TAG_AUDIO,__VA_ARGS__);
17
#define LOGE(...) ESP_LOGE(TAG_AUDIO,__VA_ARGS__);
18
19
#define TRACED() ESP_LOGD(TAG_AUDIO, "%s", LOG_METHOD);
20
#define TRACEI() ESP_LOGI(TAG_AUDIO, "%s", LOG_METHOD);
21
#define TRACEW() ESP_LOGW(TAG_AUDIO, "%s", LOG_METHOD);
22
#define TRACEE() ESP_LOGE(TAG_AUDIO, "%s", LOG_METHOD);
23
24
#else
25
26
// Switch off logging
27
#define LOGD(...)
28
#define LOGI(...)
29
#define LOGW(...)
30
#define LOGE(...)
31
#define TRACED()
32
#define TRACEI()
33
#define TRACEW()
34
#define TRACEE()
35
36
#endif
Generated by
1.9.8