a simple C logger lib