/// <summary> /// Sets the config value. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> /// <returns></returns> public override string SetConfigValue(string name, string value) { string ret = null; switch (name) { case "prefix": MessagePrefix = value; break; case "poll_intervall": _pollInterval = ListenerHelper.GetSafeInt(value); break; case "only_tail": if (!bool.TryParse(value, out _onlyTail)) { ret = "Please enter [true] or [false] here."; } break; case "file_name": _fileName = value; break; case "encoding": _encName = value; break; case "structured": _structured = value; break; case "file_open": _fileName = value; break; default: throw new NotImplementedException("This listener has no field named: " + name); } return(ret); }