aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.WatchDog/App.xaml.cs
blob: 2247b95e537a4cd7c9db612abdf683d4efbaab65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Tango.Logging;

namespace Tango.PPC.WatchDog
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private LogManager LogManager = LogManager.Default;

        protected override void OnStartup(StartupEventArgs e)
        {
            LogManager.RegisterLogger(new FileLogger());
            LogManager.RegisterLogger(new VSOutputLogger());

            LogManager.Log("Watchdog process started...");

            base.OnStartup(e);
        }
    }
}