Add logging level support to libc