More reliable way of reading the logs message