Coder Social home page Coder Social logo

log4net.appenders.fluentd's Introduction

Log4net.Appenders.Fluentd

Fluentd appender for Log4net.

Installation

PM> Install-Package Log4net.Appenders.Fluentd
or
> dotnet add package Log4net.Appenders.Fluentd

Configuration

<appender name="Fluentd" type="Log4net.Appenders.Fluentd.FluentdAppender, Log4net.Appenders.Fluentd">
    <Host>127.0.0.1</Host>
    <Port>24224</Port>
    <Tag>YourTagHere</Tag>
    <NoDelay>false</NoDelay>
    <ReceiveBufferSize>8192</ReceiveBufferSize>
    <SendBufferSize>8192</SendBufferSize>
    <SendTimeout>1000</SendTimeout>
    <ReceiveTimeout>1000</ReceiveTimeout>
    <LingerEnabled>true</LingerEnabled>
    <LingerTime>1000</LingerTime>
    <EmitStackTraceWhenAvailable>true</EmitStackTraceWhenAvailable>
    <IncludeAllProperties>false</IncludeAllProperties>
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} [%thread] [%property{Context}] %-5level %logger - %message%newline" />
    </layout>
</appender>

Dependencies

- log4net
- MsgPack.Cli

Building the project

dotnet build

Contribute

If you have any idea for an improvement or found a bug, do not hesitate to open an issue.

License

Log4net.Appenders.Fluentd is distributed under MIT License.

log4net.appenders.fluentd's People

Contributors

chrisjparish avatar damstrajk avatar dependabot[bot] avatar mckanpolat avatar vifill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

log4net.appenders.fluentd's Issues

Support TLS

It would be good to allow the TCP connection with fluent to support TLS. I guess it would be a configuration option to enable/disable.

If you are still maintaining this repo, then I am happy to put together a PR for the functionality.

Only works when build configuration is set to Debug

We have a naming convention for our build configurations that are tied to our web.config transforms and CI pipeline. The build configuration names are

  1. Debug
  2. Test
  3. Production

I can only get this to work in my application when the build configuration in Visual Studio is set to Debug. I have no idea why this as the only difference between Test and Debug is name.

Is anyone else having this problem?

Configuration parameters

Hi,

Not so much an issue with the code but can you provide more details around the configuration parameters for the appender.

Thanks!

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.