MCPcopy Create free account
hub / github.com/android/ndk-samples / LogSeverityToPriority

Function LogSeverityToPriority

base/src/main/cpp/logging.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static int32_t LogSeverityToPriority(LogSeverity severity) {
70 switch (severity) {
71 case VERBOSE:
72 return ANDROID_LOG_VERBOSE;
73 case DEBUG:
74 return ANDROID_LOG_DEBUG;
75 case INFO:
76 return ANDROID_LOG_INFO;
77 case WARNING:
78 return ANDROID_LOG_WARN;
79 case ERROR:
80 return ANDROID_LOG_ERROR;
81 case FATAL_WITHOUT_ABORT:
82 case FATAL:
83 default:
84 return ANDROID_LOG_FATAL;
85 }
86}
87
88static LogFunction& Logger() {
89 static auto& logger = *new LogFunction(LogdLogger());

Callers 1

LogdLogChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected