Giter Club home page Giter Club logo

epi.libraries.logging.serilog's People

Contributors

jstemerdink avatar

Stargazers

 avatar

Watchers

 avatar

epi.libraries.logging.serilog's Issues

No way to use placeholders in EPi serilog

Hi,

I tried today to use log with placeholders (or structured logging as well) in EpiServer Serilog and I figured it doesn't support it. Sorry if I am posting this in the wrong place, but I was wondering if there's anything to make it support placeholders. I need it for having new fields in the json which is generated and sent to logstash/kibana.

By placeholders I mean something like this:


string test = "message";
logger.Information("{test}", message);

There's no Information (or Error, Debug) method accepting this kind of property.

Thanks in advance and sorry if I'm posting this in the incorrect place.

SeriLoggerFactory does not remain registered with LogManager

When using EPiServer 10.10.0 (or maybe even earlier versions) the LoggerFactory will not remain set on the EPiServer.Logging.LogManager. When resolving the EPiServer.Logging.ILogger it will now resolve the EPiServerLazyLogger. However, when registering it using the appsettings or loggerFactoryType attribute on the episerver.framework section it does work.

<appSettings>
     <add key="episerver:LoggerFactoryType" value="EPi.Libraries.Logging.Serilog.SeriLoggerFactory, EPi.Libraries.Logging.Serilog" />
</appSettings>

or

<episerver.framework loggerFactoryType="EPi.Libraries.Logging.Serilog.SeriLoggerFactory, EPi.Libraries.Logging.Serilog">

(Source)

I propose a change to remove the SeriLoggerFactory registeration with the EPiServer.Logging.LogManager from the InitializableModule and update the documentation to register the SeriLoggerFactory using the configuration as stated above.

Will make PR when I have the time (probably this weekend or so).

Serilog log doesn't work with the new version

Hi, jstemerdink,
I have the following cases:

  1. Today I installed your packages in my EpiServer project and after update with the new versions of Serilog 2.6.0, I stopped receiving records in my log-file. Before that it worked fine.
  2. When I removed EpiServer.Logging.Log4net I also stopped receiving records in my log-file.

I would like to use Serilog and JSON format with your libraries in my project. Could you tell me please what can I do to achieve my aim?

Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.