configured logging for development and production