Updating logging system

Now it works properly!