check if log can be written before trying it