{"id":23626269,"url":"https://github.com/datalust/seq-client-log4net","last_synced_at":"2025-10-11T15:38:38.422Z","repository":{"id":11951623,"uuid":"14522329","full_name":"datalust/seq-client-log4net","owner":"datalust","description":"A log4net appender that writes events to Seq","archived":false,"fork":false,"pushed_at":"2025-02-11T22:28:19.000Z","size":1010,"stargazers_count":27,"open_issues_count":4,"forks_count":26,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-10-03T08:34:39.820Z","etag":null,"topics":["log4net","log4net-appender","seq"],"latest_commit_sha":null,"homepage":"https://datalust.co/seq","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datalust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-19T11:18:55.000Z","updated_at":"2025-02-15T20:30:27.000Z","dependencies_parsed_at":"2025-03-05T22:12:25.132Z","dependency_job_id":"d96ef899-ee38-4e4e-8eb4-18d80b287e9e","html_url":"https://github.com/datalust/seq-client-log4net","commit_stats":null,"previous_names":["continuousit/seq-client"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/datalust/seq-client-log4net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fseq-client-log4net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fseq-client-log4net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fseq-client-log4net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fseq-client-log4net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datalust","download_url":"https://codeload.github.com/datalust/seq-client-log4net/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fseq-client-log4net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002406,"owners_count":26083374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["log4net","log4net-appender","seq"],"created_at":"2024-12-27T22:52:43.510Z","updated_at":"2025-10-11T15:38:38.400Z","avatar_url":"https://github.com/datalust.png","language":"C#","readme":"# Seq.Client.Log4Net [![Build status](https://ci.appveyor.com/api/projects/status/sxw4n1a6v9o7db2i?svg=true)](https://ci.appveyor.com/project/datalust/seq-client-log4net)\n\nAn Apache log4net appender that writes events to Seq.\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e Like much of the log4net ecosystem, Seq's support for log4net is in maintenance mode.\n\u003e\n\u003e Seq works best with richly-structured event data like that produced by [Serilog](https://serilog.net), [ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x) and [NLog](http://nlog-project.org). These libraries are actively developed and have up-to-date support for modern application requirements.\n\n### Getting started\n\nThe Seq appender for log4net supports both .NET Framework 4.0+, and .NET Core via .NET Standard 2.0.\n\nTo install _Seq.Client.Log4Net_ from NuGet, at the Visual Studio Package Manager console, type:\n\n```powershell\nInstall-Package Seq.Client.Log4Net\n```\n\nThen, add the appender to your log4net configuration:\n\n```xml\n\u003cappender name=\"SeqAppender\" type=\"Seq.Client.Log4Net.SeqAppender, Seq.Client.Log4Net\" \u003e\n  \u003cbufferSize value=\"1\" /\u003e\n  \u003cserverUrl value=\"http://my-seq\" /\u003e\n  \u003capiKey value=\"\" /\u003e\n\u003c/appender\u003e\n```\n\nSet the `serverUrl` value to the address of your Seq server. Set the `apiKey` value to your Seq API key, if required.\n\nFinally, add a reference to the appender in the appropriate configuration section:\n\n```xml\n\u003croot\u003e\n  \u003clevel value=\"INFO\" /\u003e\n  \u003cappender-ref ref=\"SeqAppender\" /\u003e\n\u003c/root\u003e\n```\n\n### Writing events\n\nThat's it! When you write log events to your log4net `ILogger`:\n\n```csharp\nlog.InfoFormat(\"Hello, {0}, from log4net!\", Environment.UserName);\n```\n\nThey'll appear beautifully in Seq.\n\n### Performance\n\nBy default, the appender is synchronous. This can lead to application slowdowns.\n\nFor acceptable production performance, we recommend the use of [_Log4Net.Async_](https://github.com/cjbhaines/Log4Net.Async)\nand a buffer size of 100 or greater. See [this log4net configuration](https://github.com/datalust/seq-client-log4net/blob/dev/example/SeqLog4NetExample/App.config) for full configuation sample.\n\n\u003e **Note regarding NLog 4.0 and SLAB clients:**\n\u003e\n\u003e This repository originally included _Seq.Client.NLog_, targeting NLog 4.0, and _Seq.Client.Slab_, \n\u003e targeting Microsoft SLAB. The NLog client has been replaced with the much-improved \n\u003e [_NLog.Targets.Seq_](https://github.com/datalust/nlog-targets-seq), while the SLAB client is now \n\u003e deprecated with no replacement currently planned. Both of these projects can be viewed in the \n\u003e `deprecated-nlog-slab` branch.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fseq-client-log4net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatalust%2Fseq-client-log4net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fseq-client-log4net/lists"}