diff options
author | Torsten Hilbrich <torsten.hilbrich@secunet.com> | 2017-06-21 12:54:35 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-21 13:02:39 +0200 |
commit | b4ad1e8a21c1b175eb2459939120c5fb1fef2c08 (patch) | |
tree | 8380493fa220b553dd8507775dfda9a81527c329 /src/main.c | |
parent | 0e854644dbd896577eaa8f9b05c10aa6283b9533 (diff) |
log: Refactor evaluation of log level
Starting with adding a typed enum type for the log level named
MMLogLevel.
Suggested-By: Aleksander Morgado <aleksander@aleksander.es>
The level was checked twice in _mm_log. Once at the beginning and
again when turning the level into both the syslog priority and some
descriptive text which was added to the log level. Removing the check
at the second location as it was redundant.
Also adding a helper function to turn the MMLogLevel into the syslog
equivalent. This will become handy when adding support for systemd
journal.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions