summaryrefslogtreecommitdiff
path: root/src/logging/logging.c
blob: 429f22213370e0a939e7f083425cfa90fab419b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>

#include "logging/logging.h"


const char * honey_log_level_str_(struct honey_log_info *info)
{
   switch(info->log_level) {
   case DEBUG:
      return "DEBUG";
      break;

   case INFO:
      return "INFO";
      break;

   case WARN:
      return "WARN";
      break;

   case ERROR:
      return "ERROR";
      break;

   case FATAL:
      return "FATAL";
      break;

   default:
      return NULL;
      break;
   }
}