| 23 | namespace logging { |
| 24 | |
| 25 | static inline char const* get_prefix(verbosity v) |
| 26 | { |
| 27 | switch (v) { |
| 28 | case verbosity::error: |
| 29 | return "[ERROR]"; |
| 30 | case verbosity::info: |
| 31 | return "[INFO]"; |
| 32 | case verbosity::debug: |
| 33 | return "[DEBUG]"; |
| 34 | default: |
| 35 | return "[UNKNOWN]"; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | LAMBDA_RUNTIME_API |
| 40 | void log(verbosity v, char const* tag, char const* msg, va_list args) |