Browse Source
Merge pull request #815 from colinin/fix-systemlog-feature
fix(logging): add missing systemlog feature definition
pull/819/head
yx lin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
11 additions and
0 deletions
-
aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Features/AuditingFeatureDefinitionProvider.cs
-
aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/en.json
-
aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/zh-Hans.json
|
|
|
@ -33,6 +33,13 @@ namespace LINGYUN.Abp.Auditing.Features |
|
|
|
description: L("Features:Description:SecurityLog"), |
|
|
|
valueType: new ToggleStringValueType(new BooleanValueValidator()) |
|
|
|
); |
|
|
|
loggingFeature.CreateChild( |
|
|
|
name: AuditingFeatureNames.Logging.SystemLog, |
|
|
|
defaultValue: true.ToString(), |
|
|
|
displayName: L("Features:DisplayName:SystemLog"), |
|
|
|
description: L("Features:Description:SystemLog"), |
|
|
|
valueType: new ToggleStringValueType(new BooleanValueValidator()) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
protected LocalizableString L(string name) |
|
|
|
|
|
|
|
@ -10,6 +10,8 @@ |
|
|
|
"Features:Description:AuditLog": "Whether to enable audit logging", |
|
|
|
"Features:DisplayName:SecurityLog": "Security log", |
|
|
|
"Features:Description:SecurityLog": "Whether to enable security logging", |
|
|
|
"Features:DisplayName:SystemLog": "System log", |
|
|
|
"Features:Description:SystemLog": "Whether to enable system logging", |
|
|
|
"SecurityLog": "Security log", |
|
|
|
"AuditLog": "Audit log", |
|
|
|
"Logging": "System Log", |
|
|
|
|
|
|
|
@ -10,6 +10,8 @@ |
|
|
|
"Features:Description:AuditLog": "是否启用审计日志功能", |
|
|
|
"Features:DisplayName:SecurityLog": "安全日志", |
|
|
|
"Features:Description:SecurityLog": "是否启用安全日志功能", |
|
|
|
"Features:DisplayName:SystemLog": "系统日志", |
|
|
|
"Features:Description:SystemLog": "是否启用系统日志功能", |
|
|
|
"SecurityLog": "安全日志", |
|
|
|
"AuditLog": "审计日志", |
|
|
|
"Logging": "系统日志", |
|
|
|
|