Skip to content

Commit

Permalink
Logger add prefix to identfy application
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Sep 16, 2022
1 parent 98def08 commit ecfe700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/VS1053Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class VS1053LoggerClass {
VS1053LogLevel_t logLevel = VS1053Warning;

/// start the logger
bool begin(VS1053LogLevel_t l, Print &out) {
bool begin(Print &out, VS1053LogLevel_t l) {
p_out = &out;
logLevel = l;
return true;
Expand All @@ -31,7 +31,8 @@ class VS1053LoggerClass {
void log(VS1053LogLevel_t level, const char *fmt...) {
if (logLevel <= level) { // AUDIOKIT_LOG_LEVEL = Debug
char log_buffer[200];
strcpy(log_buffer, VS1053_log_msg[level]);
strcpy(log_buffer,"VS1053 - ");
strcat(log_buffer, VS1053_log_msg[level]);
strcat(log_buffer, ": ");
va_list arg;
va_start(arg, fmt);
Expand Down

0 comments on commit ecfe700

Please sign in to comment.