Handles logging for different environments: development, staging & production. #NodeJS