linting + creating the logs dir if nonexistent