diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-12 12:53:46 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-12 12:53:46 +0200 |
| commit | 8231c057a4073e7397dbb1d953c43a76d8187e72 (patch) | |
| tree | 1c40c8497aac2f10f919ab732af0c357493ca320 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs | |
| parent | 2bef1ef7fb1d5cd57e2af3f47a648e512cfcd4f2 (diff) | |
| download | Tango-8231c057a4073e7397dbb1d953c43a76d8187e72.tar.gz Tango-8231c057a4073e7397dbb1d953c43a76d8187e72.zip | |
Implemented global exception trapping on machine studio.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs index daa24f087..186e230dc 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs @@ -66,23 +66,6 @@ namespace Tango.MachineStudio.UI SimpleIoc.Default.Register<MachineConnectionViewVM>(); SimpleIoc.Default.Register<MachineLoginViewVM>(); - if (!ViewModelBase.IsInDesignModeStatic) - { - LogManager.Categories.Clear(); - LogManager.Categories.AddRange(SettingsManager.Default.MachineStudio.LoggingCategories); - - if (LogManager.Categories.Count == 0) - { - LogManager.Categories.Add(LogCategory.Critical); - LogManager.Categories.Add(LogCategory.Error); - LogManager.Categories.Add(LogCategory.General); - LogManager.Categories.Add(LogCategory.Warning); - } - - LogManager.RegisterLogger(new VSOutputLogger()); - LogManager.RegisterLogger(new FileLogger()); - } - //Register View (Supervising Controller Pattern). if (!ViewModelBase.IsInDesignModeStatic) { |
