Log to directory instead of stdout