Roy.Logging
1.0.0.5
Failing to load dlls.
See the version list below for details.
dotnet add package Roy.Logging --version 1.0.0.5
NuGet\Install-Package Roy.Logging -Version 1.0.0.5
<PackageReference Include="Roy.Logging" Version="1.0.0.5" />
paket add Roy.Logging --version 1.0.0.5
#r "nuget: Roy.Logging, 1.0.0.5"
// Install Roy.Logging as a Cake Addin #addin nuget:?package=Roy.Logging&version=1.0.0.5 // Install Roy.Logging as a Cake Tool #tool nuget:?package=Roy.Logging&version=1.0.0.5
Roy
Anything you want, you got it. Anything you need, you got it. Anything at all, you got it, baby. Logging service library.
Default Exception Logging.
The following code demonstrates basic usage of Roy exception logging. Just add Roy.Logging to your using statements. Now you can run "SaveAsync" method to save the exception. No need for more configuration or object injection.
using Roy.Logging;
public void AmazingCode()
{
try
{
// Evil code fails.
}
catch (Exception ex)
{
ex.SaveAsync();
}
}
Logging an object or any data.
The following code demonstrates basic usage of Roy logging. Just add Roy.Logging to your using statements. Now you can run "LogAsync" method to log any object or primitive. No need for more configuration or object injection.
using Roy.Logging;
public void AmazingCode()
{
Artist singer = new Artist();
singer.Name = "Roy";
singer.LastName = "Orbinson";
singer.Description = "Roy Kelton Orbison was an American singer, songwriter, and musician.";
singer.LogAsync();
"Anything you want, you got it".LogAsync(); //You can log primitives too.
}
By default, the exceptions and logs will be saved on the bin folder for instance, "bin\Debug\net7.0". Inside this folder, Roy will create an “exception” and a "logs" folder. This behavior can be changed by using the object LogExtension.Settings static property.
You can make any changes to the settings by calling LogExtension.Settings static property. I will write more documentation as soon as I have some spare time.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- MailKit (>= 4.1.0)
- Roy.Domain (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Log data such as exception and issues into your folder system, email, or post them into an API for further handling.
Easy to use.