What namspace and I missing for Serilog?

Discussion in 'C#' started by Xarzu, Mar 20, 2019.

  1. Xarzu

    Xarzu New Member

    Joined:
    Dec 18, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    What namspace and I missing for Serilog?

    I am able to use LoggerConfiguration() in my C# code with various Serilog Sinks but my compiler is complaining about the specification of my use of ".WriteTo.File". I am confused because I have ben able to use this specification in another demo solution. I wonder if there is some sort of Assembly I need to add as a reference. I have run "Install-Package Serilog.Sinks.File" from the "Package Manager Console" but that did not seem to have any effect or change.

    [​IMG]

    What directive am I missing or what assembly reference do I need?

    [​IMG]

    I tried to figure this out via online documentation but I can not find the result.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice