Log directory constant must be defined early