log to stdout by printf

pull/265/head
Takashi Kojo 2020-07-03 18:32:57 +09:00
parent a4c1cb460b
commit c06a8e5c6a
1 changed files with 4 additions and 0 deletions

View File

@ -147,7 +147,11 @@ void DefaultLoggingCb(enum wolfSSH_LogLevel level, const char *const msgStr)
}
}
#endif /* WOLFSSH_NO_TIMESTAMP */
#ifndef WOLFSSH_LOG_PRINTF
fprintf(stdout, "%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr);
#else
printf("%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr);
#endif
}
#endif /* WOLFSSH_NO_DEFAULT_LOGGING_CB */