#include <log_node.h>
Definition at line 33 of file log_node.h.
Aws::CloudWatchLogs::Utils::LogNode::LogNode |
( |
const Options & |
options | ) |
|
|
explicit |
Creates a new CloudWatchLogNode
- Parameters
-
options | an options struct that specifies some behaviors of this CloudWatchLogNode |
Definition at line 36 of file log_node.cpp.
Aws::CloudWatchLogs::Utils::LogNode::LogNode |
( |
int8_t |
min_log_severity, |
|
|
std::unordered_set< std::string > |
ignore_nodes |
|
) |
| |
|
explicit |
- Deprecated:
- Creates a new CloudWatchLogNode
- Parameters
-
min_log_severity | the minimum log severity level defined in the configuration file logs with severity level equal or above get sent to CloudWatch Logs |
ignore_nodes | The set of node names to ignore logs from |
Definition at line 41 of file log_node.cpp.
Aws::CloudWatchLogs::Utils::LogNode::LogNode |
( |
const LogNode & |
other | ) |
|
|
delete |
Aws::CloudWatchLogs::Utils::LogNode::~LogNode |
( |
| ) |
|
|
override |
Tears down a AWSCloudWatchLogNode object.
Definition at line 44 of file log_node.cpp.
bool Aws::CloudWatchLogs::Utils::LogNode::checkIfOnline |
( |
std_srvs::Trigger::Request & |
request, |
|
|
std_srvs::Trigger::Response & |
response |
|
) |
| |
Return a Trigger response detailing the LogService online status.
- Parameters
-
request | input request |
response | output response |
- Returns
- true if the request was handled successfully, false otherwise
Definition at line 54 of file log_node.cpp.
const std::string Aws::CloudWatchLogs::Utils::LogNode::FormatLogs |
( |
const rosgraph_msgs::Log::ConstPtr & |
log_msg | ) |
|
|
private |
void Aws::CloudWatchLogs::Utils::LogNode::Initialize |
( |
const std::string & |
log_group, |
|
|
const std::string & |
log_stream, |
|
|
const Aws::Client::ClientConfiguration & |
config, |
|
|
Aws::SDKOptions & |
sdk_options, |
|
|
const Aws::CloudWatchLogs::CloudWatchOptions & |
cloudwatch_options, |
|
|
const std::shared_ptr< LogServiceFactory > & |
log_service_factory = std::make_shared<LogServiceFactory>() |
|
) |
| |
Reads creds, region, and SDK option to configure log manager.
- Parameters
-
log_group | log group name |
log_stream | log stream name |
config | aws client configuration object |
sdk_options | aws sdk options |
log_service_factory | optional log manager factory |
Definition at line 46 of file log_node.cpp.
LogNode& Aws::CloudWatchLogs::Utils::LogNode::operator= |
( |
const LogNode & |
other | ) |
|
|
delete |
void Aws::CloudWatchLogs::Utils::LogNode::RecordLogs |
( |
const rosgraph_msgs::Log::ConstPtr & |
log_msg | ) |
|
Emits RecordLog using the log manager.
- Parameters
-
log_msg | A log message from the subscribed topic(s) |
Definition at line 87 of file log_node.cpp.
bool Aws::CloudWatchLogs::Utils::LogNode::ShouldSendToCloudWatchLogs |
( |
const int8_t |
log_severity_level | ) |
|
|
private |
bool Aws::CloudWatchLogs::Utils::LogNode::shutdown |
( |
| ) |
|
|
overridevirtual |
bool Aws::CloudWatchLogs::Utils::LogNode::start |
( |
| ) |
|
|
overridevirtual |
void Aws::CloudWatchLogs::Utils::LogNode::TriggerLogPublisher |
( |
const ros::TimerEvent & |
| ) |
|
Trigger the log manager to call its Service function to publish logs to cloudwatch periodically.
- Parameters
-
Definition at line 102 of file log_node.cpp.
std::unordered_set<std::string> Aws::CloudWatchLogs::Utils::LogNode::ignore_nodes_ |
|
private |
int8_t Aws::CloudWatchLogs::Utils::LogNode::min_log_severity_ |
|
private |
bool Aws::CloudWatchLogs::Utils::LogNode::publish_topic_names_ |
|
private |
The documentation for this class was generated from the following files: