setup for logging