Log verbosity levels for the logger.
More...
#include <ostream>
#include <string>
#include "sensorring/platform/SensorringExport.hpp"
Go to the source code of this file.
Log verbosity levels for the logger.
- Author
- EduArt Robotik GmbH
- Date
- 2024-11-25
◆ LogVerbosity
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.
|
◆ 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] | os | output stream to write to |
| [in] | verbosity | to 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] | verbosity | to be converted to a string |
- Returns
- Name of the verbosity level written out as string