adding log management similar to https://github.com/acieroid/goeland; thx acieroid