Skip to content

Commit 18dc3fc

Browse files
committed
README
1 parent 30c2860 commit 18dc3fc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,21 @@ The library also provides a versatile [AudioPlayer](https://pschatzmann.github.i
6868
6969
### Logging
7070
71-
The application uses a built in logger (see AudioLogger.h and AudioConfig.h). You can deactivate the logging by changing USE_AUDIO_LOGGING to false in the AudioConfig.h to decrease the memory usage:
71+
The application uses a built in logger: By default we use the log level warning and the logging output is going to Serial. You can change this in your sketch by calling e.g:
7272
7373
```C++
74-
#define USE_AUDIO_LOGGING false
74+
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Debug);
7575
```
7676

77-
Per default we use the log level warning and the logging output is going to Serial. You can change this in your sketch by calling AudioLogger begin with the output stream and the log level e.g:
77+
Valid values are: Debug, Info, Warning, Error.
78+
79+
80+
You can also deactivate the logging by changing USE_AUDIO_LOGGING to false in the AudioConfig.h to decrease the memory usage:
7881

7982
```C++
80-
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Debug);
83+
#define USE_AUDIO_LOGGING false
8184
```
8285
83-
8486
## Show and Tell
8587
8688
Get some inspiration [from projects that were using this library](https://github.com/pschatzmann/arduino-audio-tools/discussions/categories/show-and-tell) or share your projects with the community.

0 commit comments

Comments
 (0)