Parent Directory
|
Revision Log
|
Patch
--- trunk/RomCheater.RVACalculator/RVACalculatorDockControl.cs 2014/04/15 14:30:48 811 +++ trunk/RomCheater.RVACalculator/RVACalculatorDockControl.cs 2014/04/15 14:52:10 812 @@ -25,6 +25,7 @@ using System.Runtime.Serialization.Formatters.Binary; using RomCheater.PluginFramework.Core; using RomCheater.Core; +using Enterprise.Logging; namespace RomCheater.RVACalculator { @@ -156,8 +157,8 @@ } catch (Exception ex) { - logger.Error.WriteLine("Failed to save file: {0}", CheatSaver.FileName); - logger.VerboseError.WriteLine(ex.ToString()); + gLog.Error.WriteLine("Failed to save file: {0}", CheatSaver.FileName); + gLog.Verbose.Error.WriteLine(ex.ToString()); MessageBox.Show(string.Format("Failed to save: '{0}'", new FileInfo(CheatSaver.FileName).Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } @@ -166,8 +167,8 @@ } catch (Exception ex) { - logger.Error.WriteLine("Failed to save file: {0}", CheatSaver.FileName); - logger.VerboseError.WriteLine(ex.ToString()); + gLog.Error.WriteLine("Failed to save file: {0}", CheatSaver.FileName); + gLog.Verbose.Error.WriteLine(ex.ToString()); MessageBox.Show(string.Format("Failed to save: '{0}'", new FileInfo(CheatSaver.FileName).Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error); } } @@ -204,7 +205,7 @@ if (result == System.Windows.Forms.DialogResult.Cancel) { // assume abort of load - logger.Warn.WriteLine("Abored processing of file (by user request): {0}", CheatLoader.FileName); + gLog.Warn.WriteLine("Abored processing of file (by user request): {0}", CheatLoader.FileName); fs.Close(); return; } @@ -225,8 +226,8 @@ } catch (Exception ex) { - logger.Error.WriteLine("Failed to load file: {0}", CheatLoader.FileName); - logger.VerboseError.WriteLine(ex.ToString()); + gLog.Error.WriteLine("Failed to load file: {0}", CheatLoader.FileName); + gLog.Verbose.Error.WriteLine(ex.ToString()); MessageBox.Show(string.Format("Failed to open: '{0}'", new FileInfo(CheatLoader.FileName).Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } @@ -235,8 +236,8 @@ } catch (Exception ex) { - logger.Error.WriteLine("Failed to load file: {0}", CheatLoader.FileName); - logger.VerboseError.WriteLine(ex.ToString()); + gLog.Error.WriteLine("Failed to load file: {0}", CheatLoader.FileName); + gLog.Verbose.Error.WriteLine(ex.ToString()); MessageBox.Show(string.Format("Failed to open: '{0}'", new FileInfo(CheatLoader.FileName).Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error); } ResizeColumns();
ViewVC Help | |
Powered by ViewVC 1.1.22 |