--- trunk/RomCheater/Serialization/SearchResultReader.cs 2014/04/15 14:30:48 811 +++ trunk/RomCheater/Serialization/SearchResultReader.cs 2014/04/15 14:52:10 812 @@ -26,6 +26,7 @@ using RomCheater.Core; using System.Diagnostics; using System.Collections; +using Enterprise.Logging; namespace RomCheater.Serialization { @@ -321,7 +322,7 @@ { if (this.cancel_method.Invoke()) { - logger.Warn.WriteLine("UpdateResultValuesFromMemory - operation cancelled at [ResultIndex=0x{0} ChunkCount=0x{1}]", i.ToString("X"), results.Length.ToString("X")); + gLog.Warn.WriteLine("UpdateResultValuesFromMemory - operation cancelled at [ResultIndex=0x{0} ChunkCount=0x{1}]", i.ToString("X"), results.Length.ToString("X")); break; } ulong value = 0; @@ -334,7 +335,7 @@ case SearchDataTypes._64bits: value = BitConverter.ToUInt64(data, 0); break; } results[i].Value = value; - logger.Profiler.WriteLine("UpdateResultValuesFromMemory [ResultIndex=0x{0} ChunkCount=0x{1}] has taken a total of {2} seconds to complete", i.ToString("X"), results.Length.ToString("X"), st.Elapsed.TotalSeconds.ToString()); + gLog.Profiler.WriteLine("UpdateResultValuesFromMemory [ResultIndex=0x{0} ChunkCount=0x{1}] has taken a total of {2} seconds to complete", i.ToString("X"), results.Length.ToString("X"), st.Elapsed.TotalSeconds.ToString()); string message = string.Format(" -> Updateing values [ResultIndex=0x{0} of ChunkCount=0x{1}]", i.ToString("X"), results.Length.ToString("X")); @@ -345,7 +346,7 @@ } } st.Stop(); - logger.Profiler.WriteLine("UpdateResultValuesFromMemory [ChunkCount=0x{0}] took a total of {1} seconds to complete", results.Length.ToString("X"), st.Elapsed.TotalSeconds.ToString()); + gLog.Profiler.WriteLine("UpdateResultValuesFromMemory [ChunkCount=0x{0}] took a total of {1} seconds to complete", results.Length.ToString("X"), st.Elapsed.TotalSeconds.ToString()); } } @@ -492,8 +493,8 @@ } catch (Exception ex) { - logger.Error.WriteLine("Failed to reader results..."); - logger.VerboseError.WriteLine(ex.ToString()); + gLog.Error.WriteLine("Failed to reader results..."); + gLog.Verbose.Error.WriteLine(ex.ToString()); results =new StructResultType[0]; //results.TrimExcess(); throw ex;