Changed log name initialization to constructor