setup logging for different environments