Generic configurable logging module