a simple log lib