Crow  0.0.4
loggers.hpp
1 #ifndef NLOHMANN_CROW_LOGGERS_HPP
2 #define NLOHMANN_CROW_LOGGERS_HPP
3 
4 namespace nlohmann
5 {
6 namespace crow_integrations
7 {
8 
14 {
26 };
27 
36 const char* log_action_level(const log_action action) noexcept
37 {
38  switch (action)
39  {
40  case message_fatal:
41  case breadcrumb_fatal:
42  return "fatal";
43  case message_error:
44  case breadcrumb_error:
45  return "error";
46  case message_warning:
47  case breadcrumb_warning:
48  return "warning";
49  case message_info:
50  case breadcrumb_info:
51  return "info";
52  case message_debug:
53  case breadcrumb_debug:
54  return "debug";
55  default:
56  return "";
57  }
58 }
59 
60 }
61 }
62 
63 #endif
send a message with level "debug"
Definition: loggers.hpp:19
add a breadcrumb with level "info"
Definition: loggers.hpp:23
send a message with level "info"
Definition: loggers.hpp:18
add a breadcrumb with level "debug"
Definition: loggers.hpp:24
add a breadcrumb with level "warning"
Definition: loggers.hpp:22
add a breadcrumb with level "fatal"
Definition: loggers.hpp:20
const char * log_action_level(const log_action action) noexcept
get Sentry level for each log action
Definition: loggers.hpp:36
namespace for Niels Lohmann
Definition: crow.hpp:40
send a message with level "warning"
Definition: loggers.hpp:17
log_action
different actions to be executed for a log event
Definition: loggers.hpp:13
send a message with level "error"
Definition: loggers.hpp:16
add a breadcrumb with level "error"
Definition: loggers.hpp:21
send a message with level "fatal"
Definition: loggers.hpp:15