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::Debug, Type::Info, Type::Warning,
  Type::Error
}
 

Public Member Functions

std::string coloredString () const
 
 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 13 of file log_event.h.

Member Enumeration Documentation

◆ Channel

Enumerator
NotApplicable 
Stdout 
Stderr 

Definition at line 29 of file log_event.h.

◆ Type

Enumerator
Raw 

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

Debug 
Info 
Warning 
Error 

Definition at line 16 of file log_event.h.

Constructor & Destructor Documentation

◆ LogEvent()

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

Definition at line 36 of file log_event.h.

Member Function Documentation

◆ coloredString()

std::string rosmon::LogEvent::coloredString ( ) const
inline

Definition at line 40 of file log_event.h.

Member Data Documentation

◆ channel

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

Definition at line 64 of file log_event.h.

◆ message

std::string rosmon::LogEvent::message

Definition at line 61 of file log_event.h.

◆ muted

bool rosmon::LogEvent::muted = false

Definition at line 63 of file log_event.h.

◆ showStdout

bool rosmon::LogEvent::showStdout = true

Definition at line 65 of file log_event.h.

◆ source

std::string rosmon::LogEvent::source

Definition at line 60 of file log_event.h.

◆ type

Type rosmon::LogEvent::type

Definition at line 62 of file log_event.h.


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


rosmon_core
Author(s): Max Schwarz
autogenerated on Fri Jun 16 2023 02:15:06