c logger library