Replaced old System::Log() calls with CUBE_LOG macro.