Lightweight log library