Classes | Public Member Functions | Private Attributes | List of all members
rosmon::SystemdLogger Class Reference

Write log messages to systemd journal. More...

#include <logger.h>

Inheritance diagram for rosmon::SystemdLogger:
Inheritance graph
[legend]

Classes

class  NotAvailable
 

Public Member Functions

void log (const LogEvent &event) override
 
 SystemdLogger (const std::string &launchFileName)
 
 ~SystemdLogger () override
 
- Public Member Functions inherited from rosmon::Logger
virtual ~Logger ()=default
 

Private Attributes

int m_fd = -1
 
std::string m_launchFileName
 

Detailed Description

Write log messages to systemd journal.

Definition at line 60 of file logger.h.

Constructor & Destructor Documentation

◆ SystemdLogger()

rosmon::SystemdLogger::SystemdLogger ( const std::string &  launchFileName)
explicit

Definition at line 104 of file logger.cpp.

◆ ~SystemdLogger()

rosmon::SystemdLogger::~SystemdLogger ( )
override

Definition at line 123 of file logger.cpp.

Member Function Documentation

◆ log()

void rosmon::SystemdLogger::log ( const LogEvent event)
overridevirtual

Implements rosmon::Logger.

Definition at line 129 of file logger.cpp.

Member Data Documentation

◆ m_fd

int rosmon::SystemdLogger::m_fd = -1
private

Definition at line 78 of file logger.h.

◆ m_launchFileName

std::string rosmon::SystemdLogger::m_launchFileName
private

Definition at line 77 of file logger.h.


The documentation for this class was generated from the following files:


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