Skip to content

Commit ecfe700

Browse files
committed
Logger add prefix to identfy application
1 parent 98def08 commit ecfe700

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/VS1053Logger.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class VS1053LoggerClass {
2121
VS1053LogLevel_t logLevel = VS1053Warning;
2222

2323
/// start the logger
24-
bool begin(VS1053LogLevel_t l, Print &out) {
24+
bool begin(Print &out, VS1053LogLevel_t l) {
2525
p_out = &out;
2626
logLevel = l;
2727
return true;
@@ -31,7 +31,8 @@ class VS1053LoggerClass {
3131
void log(VS1053LogLevel_t level, const char *fmt...) {
3232
if (logLevel <= level) { // AUDIOKIT_LOG_LEVEL = Debug
3333
char log_buffer[200];
34-
strcpy(log_buffer, VS1053_log_msg[level]);
34+
strcpy(log_buffer,"VS1053 - ");
35+
strcat(log_buffer, VS1053_log_msg[level]);
3536
strcat(log_buffer, ": ");
3637
va_list arg;
3738
va_start(arg, fmt);

0 commit comments

Comments
 (0)