Added log libc function