private void LogInfo(string msgFormat, params object[] ps) { if (logMessages) { LitLogger.LogFormat(msgFormat, ps); } }
public string Serialize() { JsonData data = ToJsonData(); if (data == null) { LitLogger.LogFormat("Convert To JsonData Error {0}", objName); } return(data.ToJson()); }
public JsonData this[string name] { get { return(Get(name)); } set { EnsureJsonData(); if (string.IsNullOrEmpty(name)) { LitLogger.LogFormat("Add Proterty Error => key : {0} , value : {1}", name, value); return; } else if (data.Contains(name)) { LitLogger.WarningFormat("The Proterty Exist : {0} ,it will be repalce ", name); } else { data[name] = value; } } }