Alexa Auto SDK  4.3
Public Types | Public Member Functions | List of all members
aace::logger::Logger Class Reference

Public Types

using Level = aace::logger::LoggerEngineInterface::Level
 

Public Member Functions

virtual bool logEvent (aace::logger::Logger::Level level, std::chrono::system_clock::time_point time, const std::string &source, const std::string &message)
 
void log (Level level, const std::string &tag, const std::string &message)
 

Detailed Description

Logger should be extended handle log events from the AAC SDK.

Deprecated:
This platform interface is deprecated. Use the Alexa Auto Services Bridge (AASB) message broker to publish and subscribe to AASB messages instead.
See also
aace::core::MessageBroker

Member Typedef Documentation

◆ Level

Specifies the severity level of a log message

See also
aace::logger::LoggerEngineInterface::Level

Member Function Documentation

◆ logEvent()

bool aace::logger::Logger::logEvent ( aace::logger::Logger::Level  level,
std::chrono::system_clock::time_point  time,
const std::string &  source,
const std::string &  message 
)
virtual

Notifies the platform implementation of a log event from the AAC SDK logger

Parameters
[in]levelThe log level
[in]timeThe timestamp of the logged message
[in]sourceThe source of the log message
[in]messageThe log message
Returns
true if the platform implementation successfully handled the log event, else false

◆ log()

void aace::logger::Logger::log ( Level  level,
const std::string &  tag,
const std::string &  message 
)

Notifies the Engine to use the AAC SDK logger to log a message originating on the platform. The log event will be received by the platform with a call to logEvent() from the Engine.

Parameters
[in]levelThe log level
[in]tagThe log tag
[in]messageThe log message

Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0