Add a service to log into a file

Original version by Alexander Tarasikov, refined by Norman Feske.

Fixes #736