Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 74bd1e40

Přidáno uživatelem Pultak před více než 2 roky(ů)

re #9439 logger code refactoring

Zobrazit rozdíly:

ld_client/LDClient/Program.cs
1
using LDClient;
2
using System;
1
using LDClient.utils;
2
using LDClient.utils.loggers;
3 3

  
4
namespace LDClient; 
4 5

  
5
class Program {
6
internal class Program {
6 7

  
7
    public static LDClient.ConfigLoader Config { get; set; }
8
    public static ConfigLoader Config { get; set; } = null!;
8 9

  
9 10
    // Main Method
10
    static public void Main() {
11
        Config = new LDClient.ConfigLoader();
11
    public static void Main() {
12
        Config = new ConfigLoader();
12 13

  
13 14
        while (true) {
14
            Logger.Current.Info("Ok");
15
            Logger.Current.Debug("Debug");
16
            Logger.Current.Error("Error");
15
            ALogger.Current.Info("Ok");
16
            ALogger.Current.Debug("Debug");
17
            ALogger.Current.Error("Error");
17 18
        }
18 19
    }
19 20
}

Také k dispozici: Unified diff