File size: 1,053 Bytes
bfd87b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/Core_EXPORTS.h>
#include <aws/core/utils/logging/FormattedLogSystem.h>
namespace Aws
{
namespace Utils
{
namespace Logging
{
/**
* Log system interface that logs to std::cout
*/
class AWS_CORE_API ConsoleLogSystem : public FormattedLogSystem
{
public:
using Base = FormattedLogSystem;
ConsoleLogSystem(LogLevel logLevel) :
Base(logLevel)
{}
virtual ~ConsoleLogSystem() {}
/**
* Flushes buffered messages to stdout.
*/
void Flush() override;
protected:
virtual void ProcessFormattedStatement(Aws::String&& statement) override;
};
} // namespace Logging
} // namespace Utils
} // namespace Aws
|