Logger

Adding logger to the main activity.