Updated logging path initialization for const correctness