Git Product home page Git Product logo

nlog.gelf's Issues

Including MDC, MDLC, NDC, NDLC properties to the generated document.

Hello,

Looking into this project I see it does not handle including any properties from the multiple NLog Diagnostic Contexts. Is this something that is being worked on or is something anyone has looked into?

I've done a very quick investigation and I found a way this could be implemented but wanted to check first if anyone has worked on this before.

If this is something that is still pending, I will be working in an implementation of this, I'll post updates here with the proposed API and configuration parameters so I can get feedback and to see if it's something that could be included in this library.

Regards.

Wrong LogLevel codes

When sending logs to server, wrong log level code is sent. It send log level code from NLog but GrayLog uses syslog's codes. Basically those are reverse.

If you look at http://docs.graylog.org/en/2.2/pages/gelf.html for field level it says "the level equal to the standard syslog levels;"

NLog levels can be viewed here: https://github.com/NLog/NLog/blob/master/src/NLog/LogLevel.cs
Syslog levels: https://en.wikipedia.org/wiki/Syslog#Severity_level

As you can see on this image, levelName and severity doesn't match.
4193609dd09fe0896aa32d7e6fcffa97

Connections Not Being Closed?

Great package that does exactly what I'm after, so thank you!.

It does seem though that the connections to GrayLog aren't being closed? Im running a test console project and GrayLog is showing 101 connections and climbing. Should the Write method be creating a new GelfSender every time?

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.