Add onlyErrors parametter to getLogs