Log message handler.
#include <logger.hpp>
|
static void | SetListener (std::function< void(Level level, std::string const &message)> listener) |
| Sets the function that will be invoked to report an Azure SDK log message. More...
|
|
static void | SetLevel (Level level) |
| Sets the log message level an application is interested in receiving. More...
|
|
◆ Level
Enumerator |
---|
Verbose | Logging level for detailed troubleshooting scenarios.
|
Informational | Logging level when a function operates normally.
|
Warning | Logging level when a function fails to perform its intended task.
|
Error | Logging level for failures that the application is unlikely to recover from.
|
◆ SetLevel()
- Parameters
-
level | The most verbose level to receive log messages for. Least verbose levels will be included, more verbose levels will be not. |
◆ SetListener()
void Logger::SetListener |
( |
std::function< void(Level level, std::string const &message)> |
listener | ) |
|
|
static |
- Parameters
-
listener | A callback function that will be invoked when the SDK reports a log message. If nullptr , no function will be invoked. |
The documentation for this class was generated from the following files:
- inc/azure/core/diagnostics/logger.hpp
- src/logger.cpp