-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [logging] dynamic log level setting * [logging] cleaup * [logging] use enums instead of macros * [logging] cleanup * [logging] change loglevel to enum class - change namespace * [logging] use to_underlying - change enum class name * [logging] fix compile errors - change back the namespace to chip::Logging::Platform
- Loading branch information
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include <platform_stdlib.h> | ||
|
||
namespace chip { | ||
namespace Logging { | ||
namespace Platform { | ||
|
||
enum class LogLevel | ||
{ | ||
kError, | ||
kProgress, | ||
kDetail, | ||
}; | ||
|
||
void LogSetLevel(LogLevel level); | ||
LogLevel LogGetLevel(); | ||
|
||
} // namespace Platform | ||
} // namespace Logging | ||
} // namespace chip |