Public Types | Public Member Functions | Public Attributes | List of all members
rosmon::LogEvent Struct Reference

#include <log_event.h>

Public Types

enum  Channel { Channel::NotApplicable, Channel::Stdout, Channel::Stderr }
 
enum  Type { Type::Raw, Type::Info, Type::Warning, Type::Error }
 

Public Member Functions

 LogEvent (std::string source, std::string message, Type type=Type::Raw)
 

Public Attributes

Channel channel = Channel::NotApplicable
 
std::string message
 
bool muted = false
 
bool showStdout = true
 
std::string source
 
Type type
 

Detailed Description

Definition at line 12 of file log_event.h.

Member Enumeration Documentation

Enumerator
NotApplicable 
Stdout 
Stderr 

Definition at line 27 of file log_event.h.

Enumerator
Raw 

Raw messages from monitored nodes. These are self-coded using ANSI escape codes.

Info 
Warning 
Error 

Definition at line 15 of file log_event.h.

Constructor & Destructor Documentation

rosmon::LogEvent::LogEvent ( std::string  source,
std::string  message,
Type  type = Type::Raw 
)
inline

Definition at line 34 of file log_event.h.

Member Data Documentation

Channel rosmon::LogEvent::channel = Channel::NotApplicable

Definition at line 42 of file log_event.h.

std::string rosmon::LogEvent::message

Definition at line 39 of file log_event.h.

bool rosmon::LogEvent::muted = false

Definition at line 41 of file log_event.h.

bool rosmon::LogEvent::showStdout = true

Definition at line 43 of file log_event.h.

std::string rosmon::LogEvent::source

Definition at line 38 of file log_event.h.

Type rosmon::LogEvent::type

Definition at line 40 of file log_event.h.


The documentation for this struct was generated from the following file:


rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43