Dont try to create logdir when threshold config= 0

When config threshold was set to 0 (no log). The application was still trying to create the log directory.

I would advice to switch the default configuration of threshold to 0. It would allow slightly easiest deployment.