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
key
stringThe key.
oldValues
string[]The old values.
newValues
string[]The new values.
keyArgs
string[]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
moduleKey
stringThe module key.
target
stringThe target.
logType
LogTypeType of the log.
onUnitOfWorkCompleted
boolif 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
moduleKey
stringThe module key.
target
stringThe target.
moduleLogDynamicParams
List<ModuleLogDynamicParam>The module log dynamic parameters.
logType
LogTypeType of the log.
onUnitOfWorkCompleted
boolif 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
moduleKey
stringThe module key.
target
stringThe target.
key
stringThe key.
logType
LogTypeType of the log.
onUnitOfWorkCompleted
boolif set to
true
[on unit of work completed].