Logger class

Add an error parameter to the record() method
Edit RenderWIndow class

Change error processing.