Sha256: 1fc2046eacb31d972737a7e7474aac185820adca98f404474150adc0eaff5cad

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

using NLog;

namespace Firma.Komponent
{
    public class Klasa {
        private static Logger logger = LogManager.GetLogger("Firma.Komponent.Klasa");
        // private static Logger logger = LogManager.GetCurrentClassLogger();

        static void Main()
        {
            logger.Info("Informacja");
            logger.Warn("Ostrzeżenie {0}", "testowe");
            logger.Error("Błąd");
            logger.Fatal("Błąd krytyczny");
            // formatowanie w stylu Console.WriteLine()
            logger.Debug("Wynik {0} {1}", 1 + 2, "zzz");
            // formatowanie z użyciem IFormatProvider
            logger.Debug(CultureInfo.InvariantCulture, "Bieżąca data {0}", DateTime.Now);
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nlog-1.0.0.505.20100822 docs/examples/web/article1.cs
nlog-1.0.0.505 docs/examples/web/article1.cs
nlog-1.0.0.505-mswin32 docs/examples/web/article1.cs