A simple and light weight framework used for logging