Update logError method for LogTool

Update logError method for LogTool