Created new class for getting current time and attached it to logger