예제 #1
0
        public string GetLogString(object obj, PropertyInfo propertyInfo)
        {
            if (obj != null && propertyInfo != null)
            {
                var value = LogExtensionHelper.GetString(propertyInfo.GetValue(obj, null));
                return(GetLogString(propertyInfo.Name, value));
            }

            return("");
        }
예제 #2
0
        public string GetLogString(string name, string value)
        {
            var logName = string.IsNullOrEmpty(NameInLog) ? LogExtensionHelper.DecorateName(name) : NameInLog;

            return(LogExtensionHelper.CombineString(logName, value));
        }