Probas.Aliyun.LogService
1.0.0
dotnet add package Probas.Aliyun.LogService --version 1.0.0
NuGet\Install-Package Probas.Aliyun.LogService -Version 1.0.0
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="Probas.Aliyun.LogService" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Probas.Aliyun.LogService" Version="1.0.0" />
<PackageReference Include="Probas.Aliyun.LogService" />
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 Probas.Aliyun.LogService --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Probas.Aliyun.LogService, 1.0.0"
#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 Probas.Aliyun.LogService@1.0.0
#: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=Probas.Aliyun.LogService&version=1.0.0
#tool nuget:?package=Probas.Aliyun.LogService&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Probas.Aliyun.LogService
介绍
源于阿里云日志服务.NET SDK
软件架构
软件架构说明
安装Nuget包
dotnet add package Probas.Aliyun.LogService
使用说明(配置)
- 在
Startup.cs
进行如下配置
public void ConfigureServices(IServiceCollection services)
{
// 从配置文件读取LogService相关配置,并注入使用
services.AddAliLogService();
}
- 修改
appsettings.json
{
"AliSlsConfig": {
"Endpoint": "*.log.aliyuncs.com",
"AccessKey": "*",
"SecretKey": "*",
"Project": "*",
"Logstore": "*"
}
}
- 使用,参考Sample
// 自动注入直接使用
private readonly ILogger<WeatherForecastController> _logger;
private readonly ILogServiceClient _client;
private readonly AliSlsOptions _options;
public WeatherForecastController(ILogger<WeatherForecastController> logger, ILogServiceClient client, IOptions<AliSlsOptions> options)
{
_logger = logger;
_client = client;
_options = options.Value;
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Google.Protobuf (>= 3.15.6)
- Ionic.Zlib.Core (>= 1.0.0)
- lz4net (>= 1.0.15.93)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection (>= 5.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Probas.Aliyun.LogService:
Package | Downloads |
---|---|
Probas.log4net.LogService
log4net 基于阿里云日志服务组件 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0 | 562 | 4/2/2021 |
1.0.0-alpha | 327 | 3/30/2021 |
源于阿里云日志服务.NET SDK