Fixed Logging error using rewind(Log); function