replaced cout with a native xbmc logging function