vendredi 2 juin 2017

SerilLog not logging in web application

On my WebUI project startUp.cs class i have

        public Startup()
    {
        Log.Logger = new LoggerConfiguration()
                   .WriteTo.Console()
                   .CreateLogger();
    }

and in my class library project sample.cs class i am calling

                Log.Logger.Information("This will be written to the rolling file set");

the both using serilog and class library has webUI reference but nothing happens.

Any ideas?




Aucun commentaire:

Enregistrer un commentaire