Changed all code to work with the rexos logger