Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-07 18:38:16 -07:00
parent 7d34004b6d
commit a72b8a025f
5 changed files with 17 additions and 5 deletions
@@ -57,14 +57,26 @@ namespace AWSNativeSDKInit
/**
* Does a printf style output to the output stream. Don't use this, it's unsafe. See LogStream
*/
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
void Log(Aws::Utils::Logging::LogLevel logLevel, const char* tag, const char* formatStr, ...) override;
#else
void Log(Aws::Utils::Logging::LogLevel logLevel, const char* tag, const char* formatStr, ...);
#endif
/**
* Writes the stream to the output stream.
*/
void LogStream(Aws::Utils::Logging::LogLevel logLevel, const char* tag, const Aws::OStringStream &messageStream);
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
void LogStream(Aws::Utils::Logging::LogLevel logLevel, const char* tag, const Aws::OStringStream &messageStream) override;
#else
void LogStream(Aws::Utils::Logging::LogLevel logLevel, const char* tag, const Aws::OStringStream& messageStream);
#endif
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
void Flush() override;
#else
void Flush();
#endif
private:
bool ShouldLog(Aws::Utils::Logging::LogLevel logLevel);