Refactor log definition and add possiblity to write log in a file.
Update service files.