Added logging

New function logger
New Mongo collection for log