Interface ICMSModuleLogger
- Namespace
- CMS.Plugin.MesSuite.Abstractions
- Assembly
- CMS.Plugin.MesSuite.Abstractions.dll
CMS模块日志记录器
public interface ICMSModuleLogger
Properties
DynamicParamList
Gets the module log dynamic parameters.
List<ModuleLogDynamicParam> DynamicParamList { get; }
Property Value
- List<ModuleLogDynamicParam>
Methods
AddParamIfDifference(string, string?[]?, string?[]?, string?[]?)
Adds the parameter if difference.
void AddParamIfDifference(string key, string?[]? oldValues, string?[]? newValues, string?[]? keyArgs = null)
Parameters
keystringThe key.
oldValuesstring[]The old values.
newValuesstring[]The new values.
keyArgsstring[]The key arguments.
AttachModuleLogAsync(string, string, LogType, bool)
Attaches the module log asynchronous.
Task AttachModuleLogAsync(string moduleKey, string target, LogType logType = LogType.Modify, bool onUnitOfWorkCompleted = true)
Parameters
moduleKeystringThe module key.
targetstringThe target.
logTypeLogTypeType of the log.
onUnitOfWorkCompletedboolif set to
true[on unit of work completed].
Returns
AttachModuleLogAsync(string, string, List<ModuleLogDynamicParam>, LogType, bool)
Attaches the module log asynchronous.
Task AttachModuleLogAsync(string moduleKey, string target, List<ModuleLogDynamicParam> moduleLogDynamicParams, LogType logType, bool onUnitOfWorkCompleted = true)
Parameters
moduleKeystringThe module key.
targetstringThe target.
moduleLogDynamicParamsList<ModuleLogDynamicParam>The module log dynamic parameters.
logTypeLogTypeType of the log.
onUnitOfWorkCompletedboolif set to
true[on unit of work completed].
Returns
AttachModuleLogAsync(string, string, string, LogType, bool)
Attaches the module log asynchronous.
Task AttachModuleLogAsync(string moduleKey, string target, string key, LogType logType = LogType.Modify, bool onUnitOfWorkCompleted = true)
Parameters
moduleKeystringThe module key.
targetstringThe target.
keystringThe key.
logTypeLogTypeType of the log.
onUnitOfWorkCompletedboolif set to
true[on unit of work completed].