set up log_dir as a variable in the logging subsystem, ensure it exists on startup.