Table of Contents

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 string

The 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 string

The module key.

target string

The target.

logType LogType

Type of the log.

onUnitOfWorkCompleted bool

if set to true [on unit of work completed].

Returns

Task

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 string

The module key.

target string

The target.

moduleLogDynamicParams List<ModuleLogDynamicParam>

The module log dynamic parameters.

logType LogType

Type of the log.

onUnitOfWorkCompleted bool

if set to true [on unit of work completed].

Returns

Task

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 string

The module key.

target string

The target.

key string

The key.

logType LogType

Type of the log.

onUnitOfWorkCompleted bool

if set to true [on unit of work completed].

Returns

Task