added errno to log library