VOOZH about

URL: https://www.nuget.org/packages/Sctt.Common/

⇱ NuGet Gallery | Sctt.Common 2.2.16




Sctt.Common 2.2.16

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Sctt.Common --version 2.2.16
 
 
NuGet\Install-Package Sctt.Common -Version 2.2.16
 
 
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="Sctt.Common" Version="2.2.16" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sctt.Common" Version="2.2.16" />
 
Directory.Packages.props
<PackageReference Include="Sctt.Common" />
 
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 Sctt.Common --version 2.2.16
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sctt.Common, 2.2.16"
 
 
#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 Sctt.Common@2.2.16
 
 
#: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=Sctt.Common&version=2.2.16
 
Install as a Cake Addin
#tool nuget:?package=Sctt.Common&version=2.2.16
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

版本记录

v1.6.8-alpha

增加阿里云CDN
builder.Services.AddAlibabaCloud(builder.Configuration);

 "AlibabaCloudSetting": {
 "AccessKeyId": "xxxx",
 "AccessKeySecret": "xxxx",
 "Endpoint": "xxxxx"
 },

v1.5.4-alpha

增加企业微信通知common
增加出现异常发送企业微信通知

v1.4.5-alpha

appsetting.json 在Logging内添加
"SysErrorMail": {
 "Enabled": true, // 启用异常邮件 -- 需增加邮件配置
 "ReciveMail": "system@sctt.net" //接收邮箱地址
},
邮件配置如下:
 "MailSetting": {
 "MailBccArray": "ptc.res1@ptctravel.net.cn",
 "MailDccArray": "ptc.res1@ptctravel.net.cn",
 "MailEccArray": "ptc.res1@ptctravel.net.cn",
 "SendMailSmsUrl": "xxx/mail/SmtpSend",
 "SendMailsSmsUrl": "xxx/mail/SmtpSends",
 "Token": "xxxxxxx"
 },

v1.4.4-alpha

  • 增加了 Sctt.Common.Logging 日志Attribute

使用方式

  • // 日志注册 program.cs 中添加
  • builder.Services.AddLoggingSetup(builder.Configuration);

跳过日志监视

方法上加 [SuppressMonitor] 特性

appsetting.json 在Logging内添加
完整Logging配置
"Logging": {
 "LogLevel": {
 "Default": "Information",
 "Microsoft.AspNetCore": "Warning"
 },
 "Console": {
 "FormatterName": "simple",
 "FormatterOptions": {
 "IncludeScopes": false,
 "TimestampFormat": "yyyy-MM-dd HH:mm:ss.fff ",
 "UseUtcTimestamp": true
 }
 },


 "File": {
 "Enabled": false // 启用文件日志,上传到OSS
 },
 "Database": {
 "Enabled": false, // 启用数据库日志
 "MinimumLevel": "Information"
 },

 "Monitor": {
 "GlobalEnabled": true, // 启用全局拦截日志
 "IncludeOfMethods": [], // 拦截特定方法,当GlobalEnabled=false有效
 "ExcludeOfMethods": [], // 排除特定方法,当GlobalEnabled=true有效
 "BahLogLevel": "Information", // Oops.Oh 和 Oops.Bah 业务日志输出级别
 "WithReturnValue": true, // 是否包含返回值,默认true
 "ReturnValueThreshold": 500, // 返回值字符串阈值,默认0全量输出
 "JsonBehavior": "None", // 是否输出Json,默认None(OnlyJson、All)
 "JsonIndented": false, // 是否格式化Json
 "UseUtcTimestamp": false, // 时间格式UTC、LOCAL
 "ConsoleLog": true // 是否显示控制台日志
 }

}
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.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.

Version Downloads Last Updated
2.2.19-dev 39 6/16/2026
2.2.18-dev 50 6/12/2026
2.2.17-dev 55 6/8/2026
2.2.16 57 6/3/2026
2.2.15 53 6/3/2026
2.2.14 66 5/19/2026
2.2.13 60 5/19/2026
2.2.12 61 5/14/2026
2.2.11 66 5/13/2026
2.2.10 63 5/6/2026
2.2.9 74 4/29/2026
2.2.8 78 4/28/2026
2.2.7 77 4/28/2026
2.2.6 69 4/21/2026
2.2.5 64 4/21/2026
2.2.4 83 4/17/2026
2.2.3 76 4/16/2026
2.2.2 151 4/2/2026
2.2.1 81 3/31/2026
2.2.0 81 3/19/2026
Loading failed