VersaTul.Logger.Web
1.0.17
Prefix Reserved
See the version list below for details.
dotnet add package VersaTul.Logger.Web --version 1.0.17
NuGet\Install-Package VersaTul.Logger.Web -Version 1.0.17
<PackageReference Include="VersaTul.Logger.Web" Version="1.0.17" />
paket add VersaTul.Logger.Web --version 1.0.17
#r "nuget: VersaTul.Logger.Web, 1.0.17"
// Install VersaTul.Logger.Web as a Cake Addin #addin nuget:?package=VersaTul.Logger.Web&version=1.0.17 // Install VersaTul.Logger.Web as a Cake Tool #tool nuget:?package=VersaTul.Logger.Web&version=1.0.17
VersaTul Logger Web
VersaTul Logger Web is a project that provides the functionality needed to perform logging to a web address or end point. It implements the ILogger interface from the VersaTul Logger project.
Installation
You can install the VersaTul Logger Web package from NuGet using the following command:
PM> NuGet\Install-Package VersaTul Logger.Web -Version latest
Usage
To use the VersaTul Logger Web project, you need to create an instance of the WebLogger class and pass it an implementation of the ILogWebConfiguration interface. The WebLogger class implements the IWebLogger interface, which represents the functionality needed to log to an API endpoint. The ILogWebConfiguration interface represents the functionality needed to get settings for the Web logger, such as the BaseUrl and the LogEndPoint properties.
Here is an example of how to use the WebLogger class:
// Create a configuration object that implements the ILogWebConfiguration interface
ILogWebConfiguration config = new LogWebConfiguration();
// Set the BaseUrl and LogEndPoint properties
config.BaseUrl = "http://domain.com";
config.LogEndPoint = "/api/log";
// Create a WebLogger object and pass the configuration object
IWebLogger logger = new WebLogger(config);
// Use the logger methods to log messages to the API endpoint
logger.LogInfo("This is an info message");
logger.LogError("This is an error message");
logger.LogDebug("This is a debug message");
License
This project is licensed under the MIT License - see the LICENSE file for detailss
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- VersaTul.Configurations (>= 1.0.15)
- VersaTul.Logger (>= 1.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.