VIOVNL.CloudLogger 1.0.22

dotnet add package VIOVNL.CloudLogger --version 1.0.22
                    
NuGet\Install-Package VIOVNL.CloudLogger -Version 1.0.22
                    
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="VIOVNL.CloudLogger" Version="1.0.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VIOVNL.CloudLogger" Version="1.0.22" />
                    
Directory.Packages.props
<PackageReference Include="VIOVNL.CloudLogger" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VIOVNL.CloudLogger --version 1.0.22
                    
#r "nuget: VIOVNL.CloudLogger, 1.0.22"
                    
#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.
#:package VIOVNL.CloudLogger@1.0.22
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VIOVNL.CloudLogger&version=1.0.22
                    
Install as a Cake Addin
#tool nuget:?package=VIOVNL.CloudLogger&version=1.0.22
                    
Install as a Cake Tool

CloudLogger

CloudLogger enables you to perform logging operations easily and quickly in your C#, Visual Basic and .NET projects. This package facilitates logging operations by sending requests to CloudLogger service running on the server side.

Project Secret

To use CloudLogger, you will need a Project secret. Obtain your project secret from CloudLogger Website.

Configuration

C#

// Create an instance of CloudLogger and configure it
CloudLogger cloudLogger = CloudLogger.Create("your_project_secret");

Visual Basic

// Create an instance of CloudLogger and configure it
Dim cloudLogger As CloudLogger = CloudLogger.Create("your_project_secret")

Methods and Parameters

CloudLogger.Create(projectSecret: string, throwExceptionOnFailure: Nullable<bool>)

CloudLogger.Create("your_project_secret", throwExceptionOnFailure: true );

Creates a new instance of CloudLogger with the provided project secret and options.

projectSecret (string)

Your CloudLogger project secret. Obtain your project secret from CloudLogger Website.

options (CloudLoggerOptions)
Parameter Type Default Value Description
throwExceptionOnFailure Nullable<bool> false Specifies throwing an exception in case of failure. If throwExceptionOnFailure set to true, an exception is thrown when the logging operation fails. If set to false, an error will be written in console.

CloudLogger.Log(logItems: List<CloudLoggerItem>, throwExceptionOnFailure: Nullable<bool>)

Performs the logging operation.

Example 1
// Perform the logging operation
await cloudLogger.LogAsync([
    new CloudLoggerItem("Date", "22-10-1994"),
    new CloudLoggerItem("Country", "Netherlands")
]);
Example 2
// Prepare the items you want to log
List<CloudLoggerItem> cloudLoggerItems =
[
    new CloudLoggerItem("Date", "22-10-1994"),
    new CloudLoggerItem("Country", "Netherlands")
];

// Perform the logging operation
await cloudLogger.LogAsync(cloudLoggerItems);
Example 3
// Perform the logging operation and throw an exception if it fails, disregarding global throwExceptionOnFailure setting.
await cloudLogger.LogAsync([
    new CloudLoggerItem("Date", "22-10-1994"),
    new CloudLoggerItem("Country", "Netherlands")
], true);
Example 4
// Perform the logging operation and don't throw an exception if it fails, disregarding global throwExceptionOnFailure setting.
await cloudLogger.LogAsync([
    new CloudLoggerItem("Date", "22-10-1994"),
    new CloudLoggerItem("Country", "Netherlands")
], false);
logItems (List<CloudLoggerItem>)
Parameter Type Description
Name string The name of the column in the project where the data will be logged. Ensure that the provided name matches the column name exactly as defined in the project.
Value any The data to be logged into the specified column of the project. It is imperative to ensure that the data logged aligns precisely with the designated data type specified for the column.
throwExceptionOnFailure (Nullable<bool>)
Parameter Type Default Value Description
throwExceptionOnFailure Nullable<bool> Global throwExceptionOnFailure Specifies throwing an exception in case of failure. If throwExceptionOnFailure set to true, an exception is thrown when the logging operation fails. If set to false, an error will be written in console.

CloudLogger.UpdateProjectSecret(projectSecret: string)

Updates the project secret for the CloudLogger instance, enabling logging to a different project.

// Update the project secret
cloudLogger.UpdateProjectSecret("your_project_secret");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.22 242 2/29/2024
1.0.21 200 2/29/2024
1.0.20 190 2/29/2024
1.0.19 217 2/27/2024
1.0.18 203 2/27/2024
1.0.17 201 2/27/2024
1.0.16 205 2/27/2024
1.0.15 216 2/27/2024
1.0.14 201 2/27/2024
1.0.13 208 2/27/2024
1.0.12 202 2/27/2024
1.0.8 208 2/27/2024
1.0.7 201 2/27/2024
1.0.6 226 2/27/2024
1.0.5 201 2/27/2024