Roy.Logging 1.0.0.5

Additional Details

Failing to load dlls.

There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Roy.Logging" Version="1.0.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Roy.Logging --version 1.0.0.5                
#r "nuget: Roy.Logging, 1.0.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.