Fixed logger singleton variable (removed static and made template).