MCPcopy Create free account
hub / github.com/apache/arrow / GetMappedSeverity

Function GetMappedSeverity

cpp/src/arrow/util/logging.cc:124–143  ·  view source on GitHub ↗

Glog's severity map.

Source from the content-addressed store, hash-verified

122
123// Glog's severity map.
124static google::LogSeverity GetMappedSeverity(ArrowLogLevel severity) {
125 switch (severity) {
126 case ArrowLogLevel::ARROW_TRACE:
127 return google::GLOG_INFO;
128 case ArrowLogLevel::ARROW_DEBUG:
129 return google::GLOG_INFO;
130 case ArrowLogLevel::ARROW_INFO:
131 return google::GLOG_INFO;
132 case ArrowLogLevel::ARROW_WARNING:
133 return google::GLOG_WARNING;
134 case ArrowLogLevel::ARROW_ERROR:
135 return google::GLOG_ERROR;
136 case ArrowLogLevel::ARROW_FATAL:
137 return google::GLOG_FATAL;
138 default:
139 ARROW_LOG(FATAL) << "Unsupported logging level: " << static_cast<int>(severity);
140 // This return won't be hit but compiler needs it.
141 return google::GLOG_FATAL;
142 }
143}
144
145#endif
146

Callers 2

StartArrowLogMethod · 0.85
ArrowLogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected