Report::LogErrors — Set warnings logging to .y2log file
Import Report;
void Report::LogErrors (
)
if log is true then warning messages will be logged