AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::logger::TestTrace Class Reference

#include <TestTrace.h>

Public Member Functions

 TestTrace ()
 
void log (const std::string &message)
 
template<typename ValueType >
void log (const std::string &name, const ValueType &value)
 

Detailed Description

Utility class that can be used to print logs in testcases.

This class will print debug logs and it will include the test suite and test name as part of the logs.

Constructor & Destructor Documentation

◆ TestTrace()

alexaClientSDK::avsCommon::utils::logger::TestTrace::TestTrace ( )

Initialize object and logger as well.

Member Function Documentation

◆ log() [1/2]

void alexaClientSDK::avsCommon::utils::logger::TestTrace::log ( const std::string &  message)

Log a message.

Parameters
messageThe message to be logged.

◆ log() [2/2]

template<typename ValueType >
void alexaClientSDK::avsCommon::utils::logger::TestTrace::log ( const std::string &  name,
const ValueType &  value 
)

Log a value.

Template Parameters
ValueTypeThe type of the value (must be supported by LogEntry).
Parameters
nameA string used to identify the value.
valueThe value to be logged.

The documentation for this class was generated from the following files:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0