aws_ros_logger.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef AWS_COMMON_INCLUDE_SDK_UTILS_LOGGING_AWSROSLOGGER_H_
17 #define AWS_COMMON_INCLUDE_SDK_UTILS_LOGGING_AWSROSLOGGER_H_
18 
20 
21 #include <string>
22 
23 namespace Aws {
24 namespace Utils {
25 namespace Logging {
26 
27 class AWSROSLogger : public AWSLogSystem
28 {
29 public:
35  explicit AWSROSLogger(Aws::Utils::Logging::LogLevel log_level = LogLevel::Trace);
36  AWSROSLogger(AWSROSLogger const &) = delete; // Do not allow copy constructor
37  AWSROSLogger & operator=(AWSROSLogger const &) = delete; // Do not allow assignment operator
38  ~AWSROSLogger() override = default;
39 
40 protected:
41  void LogTrace(const char * tag, const std::string & message) override;
42  void LogInfo(const char * tag, const std::string & message) override;
43  void LogDebug(const char * tag, const std::string & message) override;
44  void LogWarn(const char * tag, const std::string & message) override;
45  void LogError(const char * tag, const std::string & message) override;
46  void LogFatal(const char * tag, const std::string & message) override;
47 };
48 
49 } // namespace Logging
50 } // namespace Utils
51 } // namespace Aws
52 
53 #endif // AWS_COMMON_INCLUDE_SDK_UTILS_LOGGING_AWSROSLOGGER_H_
void LogDebug(const char *tag, const std::string &message) override
void LogWarn(const char *tag, const std::string &message) override
void LogFatal(const char *tag, const std::string &message) override
~AWSROSLogger() override=default
AWSROSLogger & operator=(AWSROSLogger const &)=delete
void LogTrace(const char *tag, const std::string &message) override
void LogError(const char *tag, const std::string &message) override
void LogInfo(const char *tag, const std::string &message) override
AWSROSLogger(Aws::Utils::Logging::LogLevel log_level=LogLevel::Trace)


aws_ros1_common
Author(s): AWS RoboMaker
autogenerated on Thu Mar 4 2021 03:25:44