replace all print with log

it was created also a crash report log file if log type is an error or a critical log