use log file attribute to set permissions (instead of hard coding)