Table of Contents

LogMaskingHelper 类

命名空间
ClassIsland.Core.Helpers
程序集
ClassIsland.Core.dll

日志打码帮助类

public static class LogMaskingHelper
继承
LogMaskingHelper
继承成员

属性

Rules

打码规则

public static List<LogMaskRule> Rules { get; }

属性值

List<LogMaskRule>

方法

MaskLog(string, string)

根据规则打码,将打码的部分替换为“***”。

public static string MaskLog(string log, string replace = "***")

参数

log string

要打码的日志

replace string

打码文本

返回

string

打码后的日志