Lightweight logging library