EduArt Sensor Ring Library 3.0.0
Loading...
Searching...
No Matches
LogVerbosity.hpp File Reference

Log verbosity levels for the logger. More...

#include <ostream>
#include <string>
#include "sensorring/platform/SensorringExport.hpp"
Include dependency graph for LogVerbosity.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  eduart::logger::LogVerbosity {
  Debug , Info , Warning , Error ,
  Exception
}
 Verbosity levels for logger output and filtering. More...

Functions

SENSORRING_EXPORT std::string eduart::logger::toString (LogVerbosity verbosity) noexcept
 Function to convert the LogVerbosity enum class members to string.
SENSORRING_EXPORT std::ostream & eduart::logger::operator<< (std::ostream &os, LogVerbosity verbosity) noexcept
 Output stream operator for the LogVerbosity enum class members.

Detailed Description

Log verbosity levels for the logger.

Author
EduArt Robotik GmbH
Date
2024-11-25

Enumeration Type Documentation

◆ LogVerbosity

enum class eduart::logger::LogVerbosity
strong

Verbosity levels for logger output and filtering.

Enumerator
Debug 

Fine-grained diagnostic messages.

Info 

General informational messages.

Warning 

Warnings that do not stop execution.

Error 

Error conditions.

Exception 

Exceptional failures; logging at this level may throw.

Function Documentation

◆ operator<<()

SENSORRING_EXPORT std::ostream & eduart::logger::operator<< ( std::ostream & os,
LogVerbosity verbosity )
noexcept

Output stream operator for the LogVerbosity enum class members.

Parameters
[in]osoutput stream to write to
[in]verbosityto be printed as stream
Returns
Stream with the verbosity name written out

◆ toString()

SENSORRING_EXPORT std::string eduart::logger::toString ( LogVerbosity verbosity)
noexcept

Function to convert the LogVerbosity enum class members to string.

Parameters
[in]verbosityto be converted to a string
Returns
Name of the verbosity level written out as string