Audit.NET: fourteen hooks, nineteen sinks, and a changelog instead of releases
An extensible framework to audit executing operations in .NET
At a glance
- What is it?
- Audit.NET wraps each operation you want to trace in an AuditScope, collects the event through one of fourteen interaction extensions, and writes it to one of nineteen named data providers. The framework is MIT licensed and pushed to master on 2026-09-16, but it publishes no GitHub releases.
- Who is it for?
- Teams already running .NET services will get the most out of Audit.NET by picking the single interaction extension that matches the call site they need to trace, choosing one of the nineteen data providers, and keeping the AuditScope inside a using statement so the event is recorded when the scope exits. Check the documentation boundary before anything else.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 69 days ago.
- What is it written in?
- Mainly C#, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- thepirat000/Audit.NET2,663 ★ · +8
| Repository | 2026-10-04 | 2026-11-24 |
|---|---|---|
| thepirat000/Audit.NET | 2.7k | 2.7k |
8 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The AuditScope is the disposable object that owns the event
Two objects carry the design. The AuditScope represents the scope of an audited operation and acts as its context, capturing the start time, the entities involved and any additional custom information; it encapsulates an AuditEvent and controls that event's life cycle. The AuditEvent is the extensible information container holding the details of the audited operation inside the scope. The scope is disposable, and the documented way to hold one is a using statement, so finalization and the recording of audit information happen on the way out of the scope rather than at some later background flush. That transition sequence has its own anchor in the documentation, labelled the audit scope statechart, which tells you the scope has a life cycle of its own and not just a constructor and a payload.
What the scope captures is stated: the caller's user ID, machine name, method name, exceptions and execution time. The Audit Event paragraph is where the visible text ends, mid sentence on the words 'It incl'. So the field list for a single event is not enumerated at the root of the repository, and anyone needing to know exactly which properties end up serialized has to read further down, in the README of the extension they actually installed.
Fourteen interaction extensions, one package per entry point
The hook side ships as fourteen separate extensions: Entity Framework, MVC, WebAPI, WCF, WCF Client, File System, SignalR, MongoClient, gRPC Client, gRPC Server, MediatR, Hangfire, Azure Functions and HttpClient. Every one of them is a project under src/ with its own README.md at that path, and each README is linked from the root README directly beside the name. The layout mirrors the package names, so an Entity Framework caller reads src/Audit.EntityFramework/README.md, a background job caller reads src/Audit.Hangfire/README.md, and the shared base sits at src/Audit.NET/.
The extension you install decides which call sites can produce an event at all. Nothing in the framework inspects your application on its own; the audit record exists because you open an AuditScope around an operation. That is also why the count matters when you plan an adoption: tracing an HTTP entry point and tracing an Entity Framework save are two different packages, and a system that receives work through several of these paths needs each extension reviewed separately rather than assumed to be covered by one of them.
Nineteen named data providers, and the enumeration still ends with more
The output side is independent of the hooks and considerably wider. Three providers live in the base package as individual source files: FileDataProvider.cs for JSON files, EventLogDataProvider.cs for the Event Log, and ActivityDataProvider.cs, whose link text names Open Telemetry Spans. Sixteen more ship as their own packages, among them SQL, MySQL, PostgreSQL, RavenDB, MongoDB, Redis, Elasticsearch, OpenSearch, DynamoDB and ImmuDB, the Azure set split across Blob, Tables, Cosmos and EventHubs, and two transport shaped ones, UDP datagrams and Channels, which close the list before the words 'and more'.
The span provider is not the same kind of thing as the rest of that list. It does not persist an audit table you can query later; it hands the event to the Open Telemetry tracing pipeline you may already run. If your organisation reads traces, that is the provider that fits. If you need an audit store that a compliance reviewer can query by user, machine or time range, the SQL and document providers are the ones that carry that. Choosing a hook and choosing a sink are two decisions, made at two different points in your code.
Four wrappers exist to defer or guard the provider you picked
Between your code and a data provider sit four output wrappers. They exist to encapsulate other data providers for purposes such as resilience or lazy instantiation, and they are named Polly, Lazy, Deferred and Conditional, each with its own anchor in the documentation. Polly is the resilience case. Lazy and Deferred are the instantiation cases, and they are the ones with a practical consequence: the provider is not built until something asks for it, which moves a misconfigured connection string or an unreachable store from application startup to the first audited call. A deployment that looks clean can still fail on the first request that happens to be inside an AuditScope.
Conditional is the odd one out, a wrapper whose whole job is to decide whether the underlying provider is used. Together they say something about the framework's priorities. It does not treat output as something that must succeed loudly at startup; it treats it as something to be wrapped, deferred or made conditional, which suits auditing added to a system that was never built for it. It also means the failure mode of a bad provider configuration is a failure at audit time, not a failure at boot time, and that distinction belongs in your runbook rather than in a deployment checklist.
Install-Package Audit.NET is the only install command given
Installation is one line, aimed at a specific console. The install section of the README says to run the following command on the Package Manager Console:
PM> Install-Package Audit.NETNo `dotnet add package` form appears anywhere in the README, and no install line is given for any of the fourteen interaction extensions or the nineteen providers, so a reader working from a terminal instead of Visual Studio has to translate the package name themselves. The repository root does carry a nuget.config, which is where a private feed would be declared if you need one. The base package is also the whole artifact: there is no executable to publish, no configuration file to copy and no service to start, which is what you would expect from a library that other packages reference. Adding auditing to an existing service means adding packages to its project references and opening scopes where you want records.
Version history sits in CHANGELOG.md while the repository publishes no releases
There is no release page to diff against. The repository publishes no GitHub releases, and the version record the root README points at is the CHANGELOG.md file. That combination means the changelog in the repository and the package versions on NuGet are the only two places a version number appears, and an upgrade decision has to be made against those rather than against a tag list.
The last push to the default branch, master, landed on 2026-09-16. The rest of the repository is shaped like a long lived library project: a solution file at the root, Directory.Build.props and Directory.Build.targets for shared build settings, a CODE_COVERAGE.md next to a .runsettings file, a Sonar-Analyze.ps1 script and a SonarCloud quality gate badge in the header table, plus a .github directory, a CODE_OF_CONDUCT.md, a CONTRIBUTING.md and directories for test, tools, templates, documents and Docker. Those are the assets of a project with a continuous integration story, which makes the absence of published releases the more noticeable gap rather than a sign of an abandoned repository.
The project homepage covers one of the fourteen extensions
The homepage recorded for the repository is https://www.learnentityframeworkcore.com/extensions/audit-entityframework-core. That is the page for the Entity Framework extension specifically, one of the fourteen interaction extensions, and not a documentation site for the framework as a whole. A reader arriving from that link is being pointed at the most popular use of Audit.NET rather than at the framework that contains fourteen hooks and nineteen sinks.
The root README is also where the commercial relationships are declared. A section headed ZZZ Projects names Entity Framework Extensions and Dapper Plus as major sponsors and proud contributors to the development of Audit.NET, followed by a pitch about combining auditing with bulk operations. Entity Framework Extensions and Dapper Plus are the same vendor's products, which explains why the extension page and the sponsorship section point the same direction. It does not change what the framework does, but it is worth knowing which vendor publishes the documentation you will land on, and that documentation for the other thirteen extensions lives in the repository rather than on that site.
The navigation promises usage, configuration and creation policy that the text does not reach
The header navigation of the root README links to seven topics: USAGE, OUTPUT, CUSTOMIZATION for custom fields and comments, DATA PROVIDERS, CREATION POLICY for event creation policy, CONFIGURATION and EXTENSIONS. The visible text covers only the introduction and the two object descriptions, ending inside the Audit Event paragraph. Every section after that point is reachable only through its anchor, so the configuration keys, the rule that decides when an event gets created, and the mechanism for attaching your own fields and comments are all named in the navigation without being spelled out where the framework is introduced.
The anchors themselves show how much detail sits behind the root page. There is a dedicated anchor for the audit scope statechart, one each for the data providers included and the data provider wrappers, and four more for the Polly, Lazy, Deferred and Conditional wrappers. Combined with the per extension READMEs under src/ and the DeepWiki link in the header table, the intended reading path is root README for the object model, extension README for your call site, and an external index for the rest. Plan on that path. The framework is broad enough that a single page cannot be the reference, and the root page does not pretend to be one.
Editorial conclusion
Teams already running .NET services will get the most out of Audit.NET by picking the single interaction extension that matches the call site they need to trace, choosing one of the nineteen data providers, and keeping the AuditScope inside a using statement so the event is recorded when the scope exits. Check the documentation boundary before anything else. The root README stops inside the Audit Event paragraph, so event creation policy, configuration keys and the custom field mechanism are not stated there, and every extension under src/ carries its own README instead. The repository publishes no GitHub releases either, which leaves CHANGELOG.md and the NuGet package list as the version record. Licence is MIT, with a LICENSE file at the repository root.
Frequently asked questions
What is Audit.NET?
It is a C# framework for .NET and .NET Core that generates audit logs with evidence for reconstructing what happened during an operation. It captures the caller's user ID, machine name, method name, exceptions and execution time inside an AuditScope, and adds logs for Entity Framework, MVC, WebAPI, WCF, SignalR, gRPC, MediatR, Hangfire, Azure Functions, HttpClient and other systems.
How do you use Audit.NET in a .NET project?
Install the base package with `PM> Install-Package Audit.NET` on the Package Manager Console, then add the interaction extension that matches the call site you want traced, each of which has its own README under src/. Open an AuditScope around the operation in a using statement; the scope holds an AuditEvent and records it when the scope is disposed.
Which .NET systems can Audit.NET hook into?
Fourteen interaction extensions are named: Entity Framework, MVC, WebAPI, WCF, WCF Client, File System, SignalR, MongoClient, gRPC Client, gRPC Server, MediatR, Hangfire, Azure Functions and HttpClient. Each one is a separate package under src/ with its own README.
Where can Audit.NET write the audit events it collects?
Nineteen providers are named: JSON files, Event Log, Open Telemetry Spans, SQL, MySQL, PostgreSQL, RavenDB, MongoDB, Azure Blob, Azure Tables, Azure Cosmos, Azure EventHubs, Redis, Elasticsearch, OpenSearch, DynamoDB, ImmuDB, UDP datagrams and Channels, with the list ending in the words 'and more'. Polly, Lazy, Deferred and Conditional wrappers can wrap any of them.
Does Audit.NET publish versioned releases?
The repository publishes no GitHub releases, and the version record is the CHANGELOG.md file. The default branch is master and the last push to it was on 2026-09-16. The package itself is distributed through NuGet.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/thepirat000-audit-net)Star history chart for your README
[](https://hysenlabs.com/projects/thepirat000-audit-net)Was this useful?