MCPcopy Create free account
hub / github.com/Tencent/MMKV / MMKVLogLevelDesc

Function MMKVLogLevelDesc

Core/MMKVLog_Android.cpp:33–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31constexpr auto APP_NAME = "MMKV";
32
33static LogLevel MMKVLogLevelDesc(MMKVLogLevel level) {
34 switch (level) {
35 case MMKVLogDebug:
36 return LOG_DEBUG;
37 case MMKVLogInfo:
38 return LOG_INFO;
39 case MMKVLogWarning:
40 return LOG_WARN;
41 case MMKVLogError:
42 return LOG_ERROR;
43 default:
44 return LOG_INFO;
45 }
46}
47
48void _MMKVLogWithLevel(MMKVLogLevel level, const char *filename, const char *func, int line, const char *format, ...) {
49 if (level >= g_currentLogLevel) {

Callers 1

_MMKVLogWithLevelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected