Simple log library + tests