Ejemplo n.º 1
0
        public static void UseConsole()
        {
            var configuration = new LoggingConfiguration();
            var configurationBuilder = new NLogConfigurationBuilder(configuration);

            configurationBuilder.AddConsoleLogging("Syringe-Errors");

            LogManager.Configuration = configuration;
        }
Ejemplo n.º 2
0
        public static void UseAllTargets()
        {
            var configuration = new LoggingConfiguration();
            var configurationBuilder = new NLogConfigurationBuilder(configuration);

            configurationBuilder.AddConsoleLogging("Syringe-Errors");
            configurationBuilder.AddChainSawLogging("Syringe-Errors");
            configurationBuilder.AddTextfileLogging("Syringe-Errors", "syringe.log");

            LogManager.Configuration = configuration;
        }
Ejemplo n.º 3
0
 public MicroServiceSetupBuilder(IGrpcServer server)
 {
     Server      = server;
     NLogBuilder = new NLogConfigurationBuilder();
 }