A tiny smart logger