![]() |
VOOZH | about |
dotnet add package ReportSharp --version 1.0.5
NuGet\Install-Package ReportSharp -Version 1.0.5
<PackageReference Include="ReportSharp" Version="1.0.5" />
<PackageVersion Include="ReportSharp" Version="1.0.5" />Directory.Packages.props
<PackageReference Include="ReportSharp" />Project file
paket add ReportSharp --version 1.0.5
#r "nuget: ReportSharp, 1.0.5"
#:package ReportSharp@1.0.5
#addin nuget:?package=ReportSharp&version=1.0.5Install as a Cake Addin
#tool nuget:?package=ReportSharp&version=1.0.5Install as a Cake Tool
Crash and information reporter for dotnet.
The package that reports request, crashes, exceptions and any other data you want.
Compatible with any service such as email, discord, telegram and etc. All you need to do is implementing report for it.
You can easily config and use it in your ASP.Net projects.
If you like it you can support this project
Incoming requests to your web application. they can be reported with RequestReporters.
Also you can access RequestReporters with ServiceProvider.GetServices<IRequestReporter>()
and report them with ReportRequest method.
Any exception that occurs in request pipeline can be reported with ExceptionReporters.
Pipeline exceptions will be detected even if you use UseExceptionHandler.
For other exceptions that handled by try-catch blocks or non-pipeline exceptions, you can access ExceptionReporter with ServiceProvider.GetServices<IExceptionReporter>()
and report them with ReportException method.
If you want to report any other data or log that is important for you, you can use DataReporter.You can access DataReporter with ServiceProvider.GetServices<IDataReporter>()
and report them with ReportData method.
You can use any service for reporting.
Use this list to check if the service has been implemented.
If the service you want to use has not been implemented, you can implement it with this how-to and let me know to update this list.
Prefix of routes that ReportSharp should report them with RequestReporter and ExceptionReporter.
You can use this feature to customize ReportSharp.
Note: if you have direct access to RequestReporter or ExceptionReporters from ServiceProvider, Requests or exceptions will be reported even if they are not match with watchdog prefix
Dotnet Core 3.1 or later
ConfigureServices method in Startup class:services.AddReportSharp(options => {
options.ConfigReportSharp(configBuilder =>
configBuilder.SetWatchdogPrefix("/")
// The url prefix that ReportSharp ExceptionReporters and RequestReporter should report them
);
options.AddRequestReporter(() => new TheRequestReporterThatYouWantToUse());
options.AddExceptionReporter(() => new TheExceptionReporterThatYouWantToUse());
options.AddDataReporter(() => new TheDataReporterThatYouWantToUse());
options.AddReporter<Reporter,TheReporterThatYouWantToUse>(() => new TheReporterThatYouWantToUse());
});
AddReporter method.Configure method in Startup class:app.UseReportSharp(configure => {
configure.UseReportSharpMiddleware<ReportSharpMiddleware>();
});
services section, before builder.Build() line:services.AddReportSharp(options => {
options.ConfigReportSharp(configBuilder =>
configBuilder.SetWatchdogPrefix("/")
// The url prefix that ReportSharp ExceptionReporters and RequestReporter should report them
);
options.AddRequestReporter(() => new TheRequestReporterThatYouWantToUse());
options.AddExceptionReporter(() => new TheExceptionReporterThatYouWantToUse());
options.AddDataReporter(() => new TheDataReporterThatYouWantToUse());
options.AddReporter<Reporter,TheReporterThatYouWantToUse>(() => new TheReporterThatYouWantToUse());
});
AddReporter method.Configure section, after builder.Build() line:app.UseReportSharp(configure => {
configure.UseReportSharpMiddleware<ReportSharpMiddleware>();
});
ReportSharp.DatabaseReporter for database.
ReportSharp.DiscordReporter for discord.
ReportSharp.Api implements apis for ReportSharp.DatabaseReporter.
TestReporter class.TestReporter.IRequestReporter interface in TestReporter class.TestReporter reports requests in ReportRequest method.IExceptionReporter interface in TestReporter class.TestReporter reports exceptions in ReportException method.IDataReporter interface in TestReporter class.TestReporter reports data in ReportData method.TestReportOptionsBuilder class.TestReportOptionsBuilder.IRequestReporter is implemented in TestReporter, Implement IRequestReporterOptionsBuilder<TestReporter>.IExceptionReporter is implemented in TestReporter, Implement IExceptionReporterOptionsBuilder<TestReporter>.IDataReporter is implemented in TestReporter, Implement IDataReporterOptionsBuilder<TestReporter>.TestService implementation to serviceCollection inside Build method.TestReporter to ReportSharp as a reporter.IRequestReporter is implemented in TestReporter, use reportSharpOptionsBuilder.AddRequestReporter(() => new TestReportOptionsBuilder())IExceptionReporter is implemented in TestReporter, use reportSharpOptionsBuilder.AddExceptionReporter(() => new TestReportOptionsBuilder())IDataReporter is implemented in TestReporter, use reportSharpOptionsBuilder.AddDataReporter(() => new TestReportOptionsBuilder())IRequestReporter, IExceptionReporter and IDataReporter is implemented, you can use reportSharpOptionsBuilder.AddReporter<TestReporter, TestReportOptionsBuilder>(() => new TestReportOptionsBuilder).USDT:TJ57yPBVwwK8rjWDxogkGJH1nF3TGPVq98 for USDT TRC200x743379201B80dA1CB680aC08F54b058Ac01346F1 for USDT ERC20| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
Showing the top 3 NuGet packages that depend on ReportSharp:
| Package | Downloads |
|---|---|
|
ReportSharp.DiscordReporter
Discord reporter for ReportSharp package |
|
|
ReportSharp.TelegramReporter
DiscordReporter for ReportSharp package With this package you can get your project reports like exception and requests from telegram |
|
|
ReportSharp.DatabaseReporter
Database reporter for ReportSharp package |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.0.5 | 3,379 | 12/31/2021 | |
| 1.0.4 | 718 | 11/16/2021 | 1.0.4 is deprecated because it is no longer maintained and has critical bugs. |
| 1.0.3 | 640 | 11/16/2021 | 1.0.3 is deprecated because it is no longer maintained and has critical bugs. |
| 1.0.2 | 659 | 11/15/2021 | 1.0.2 is deprecated because it is no longer maintained and has critical bugs. |
| 1.0.1 | 577 | 11/15/2021 | 1.0.1 is deprecated because it is no longer maintained and has critical bugs. |
| 1.0.0 | 598 | 11/15/2021 | 1.0.0 is deprecated because it is no longer maintained and has critical bugs. |