Skip to content

Commit

Permalink
small fixes to description
Browse files Browse the repository at this point in the history
  • Loading branch information
moleksy committed Nov 22, 2024
1 parent 8b2e785 commit 691cc1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media-proxy/include/mesh/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Logger {

template<typename T>
Logger& operator()(const char *key, const T& value) {
if (formatter && level >= currentLogLevel)
if (formatter && level >= currentLogLevel)
formatter->formatKeyValueBefore(ostream, key);

using DecayedT = std::decay_t<T>;
Expand Down Expand Up @@ -145,10 +145,10 @@ class Logger {
* Output:
* Nov 15 00:26:07.672 [WARN] Low memory warning available_mb=512
* Nov 15 00:26:07.672 [ERRO] Critical error occurred error_code=5001
*
* Nov 15 00:26:07.672 [DEBU] Debugging details step=init
* Example D: Adjusting log levels during runtime
* ==============================================
* mesh::log::setLogLevel(mesh::log::Level::debug); // Enable all log messages
* mesh::log::setLogLevel(mesh::log::Level::info); // Enable all log messages
* log::info("Re-enabled info logging")("reason", "debugging mode");
*
* Output:
Expand Down

0 comments on commit 691cc1b

Please sign in to comment.