/// <summary> /// Fetch our own <see cref="PatternConverter"/> SerializingConverter. /// </summary> /// <param name="info">description of the PatternConverter</param> /// <returns>pattern converter set up</returns> /// <remarks> /// <para> /// Please note that properties are only supported with log4net 1.2.11 and above. /// </para> /// </remarks> protected virtual PatternConverter CreateSerializingConverter(ConverterInfo info) { var conv = info.Type == null ? null : Activator.CreateInstance(info.Type) as PatternConverter; if (conv == null) { conv = new JsonPatternConverter(); } conv.Properties = info.Properties; return(conv); }
/// <summary> /// Fetch our own <see cref="PatternConverter"/> SerializingConverter. /// </summary> /// <param name="info">description of the PatternConverter</param> /// <returns>pattern converter set up</returns> /// <remarks> /// <para> /// Please note that properties are only supported with log4net 1.2.11 and above. /// </para> /// </remarks> protected virtual PatternConverter CreateSerializingConverter(ConverterInfo info) { var conv = info.Type == null ? null : Activator.CreateInstance(info.Type) as PatternConverter; if (conv == null) { conv = new JsonPatternConverter(); } #if !LOG4NET_1_2_10_COMPATIBLE conv.Properties = info.Properties; #endif return(conv); }