implemented level restriction; now its possible to create your own logger!