Skip to content

Amazon is wrong namespace name, Replaced to Aws #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The Native SDK now offers developers the option of controlling how all memory al
For example (note that the type signature of AllocateMemory is not set in stone and is open to debate/change based on SDK user needs):

```
class MyMemoryManager : public Amazon::Utils::Memory::MemorySystemInterface
class MyMemoryManager : public Aws::Utils::Memory::MemorySystemInterface
{
public:

Expand All @@ -108,11 +108,11 @@ And later in Main:
int main(void)
{
MyMemoryManager sdkMemoryManager;
Amazon::Utils::Memory::InitializeAWSMemorySystem(sdkMemoryManager);
Aws::Utils::Memory::InitializeAWSMemorySystem(sdkMemoryManager);

// ... do stuff

Amazon::Utils::Memory::ShutdownAWSMemorySystem();
Aws::Utils::Memory::ShutdownAWSMemorySystem();

return 0;
}
Expand Down Expand Up @@ -174,12 +174,12 @@ The SDK has configurable logging support. When initializing the logging system y

To set the logging options, you'll need to initialize the logging system at the beginning of your program:

`Amazon::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Amazon::Utils::Logging::DefaultLogSystem>("RunUnitTests", Amazon::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));`
`Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>("RunUnitTests", Aws::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));`

If you do not call InitializeAWSLogging in your program, the SDK will not do any logging.
Don't forget to shut it down at the end of your program:

`Amazon::Utils::Logging::ShutdownAWSLogging();`
`Aws::Utils::Logging::ShutdownAWSLogging();`

For example, we do something like this in our integration tests:

Expand All @@ -194,10 +194,10 @@ For example, we do something like this in our integration tests:

int main(int argc, char** argv)
{
Amazon::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Amazon::Utils::Logging::DefaultLogSystem>("RunUnitTests", Amazon::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));
Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>("RunUnitTests", Aws::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));
::testing::InitGoogleTest(&argc, argv);
int exitCode = RUN_ALL_TESTS();
Amazon::Utils::Logging::ShutdownAWSLogging();
Aws::Utils::Logging::ShutdownAWSLogging();
return exitCode;
}
```
Expand Down