A portable logging library with very efficient design