Update logging configuration

Updates the logging configuration dynamically.