Create log directory.
Only variables should be passed by reference.