GithubHelp home page GithubHelp logo

Comments (4)

andreamaruccia avatar andreamaruccia commented on June 12, 2024 1

Today had to set AutoRegisterTemplate = false because elsewise it would cause a total crash. Even in try-catch block it couldn't recover from it. Version is 3.0.134.

from serilog-sinks-elasticsearch.

mivano avatar mivano commented on June 12, 2024

And what did you experience? What kind of crash?

from serilog-sinks-elasticsearch.

andreamaruccia avatar andreamaruccia commented on June 12, 2024

Here is some context:

  • implemented a wndows service with topshelf
  • registered serilog with AutoRegisterTemplate = true
  • the elastic search server is from elastic cloud (SaaS)

When I started the service (deployment with Octopus deploy) the service logged a log message before the logger creation but nothing after that. The process died without any successive log messages and Octoups reported simply: cannot start service.
I also checked eventlogs without luck. The only thing that worked is to remove AutoRegisterTemplate. No problems since then.

from serilog-sinks-elasticsearch.

mivano avatar mivano commented on June 12, 2024

Did you try to enable the selflog (https://github.com/serilog/serilog/wiki/Debugging-and-Diagnostics) of Serilog? The sink will log errors to this selflog and it might contain details.

from serilog-sinks-elasticsearch.

Related Issues (20)

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.