Added logging and configuration classes

In order to run the listener as a background process, instead of
printing log info into the console is preferable to see the output of
the listener into a log file.
Now the listener and the logger factory share configuration resolver
class.