Fixed logger not working properly

Fixed the SCLogger not working properly.