Hello, these days I reimplemented the configuration of cxxtools logging using the serialization framework, so that the configuration is now read from a xml file instead of a properties file.
I did that already with tntnet and now I integrated both parts, so that there is a single tntnet.xml, which configures tntnet as well as logging. No separate tntnet.conf and tntnet.properties are needed any more. The implementation can be found in the svn. The documentation is not updated. There is no man page for tntnet.xml yet. You have to look at the generated tntnet.xml from "tntnet-config --project newproject" to get an idea, how to configure it. It should be not too hard to understand. The configuration using json, I mentioned some times ago is still in tntnet, so that you can alternatively use a json file tntnet.json and pass it to tntnet using the flag -j. I think I won't remove it, since it have no maintenance costs and the increase of code size is very minimal, since a json parser is in libcxxtools anyway. The logging change in cxxtools made it necessary to move the xml parser from a separate library libcxxtools-xml to the core library libcxxtools. So libcxxtools-xml disappeared completely. The reason, it was in a separate one was, that the library size is smaller for applications, that do not need xml functionality. I feel, that xml is so common these days, that it is no problem to have it in the core library. At linux tag, which took place last week in Berlin, we discussed the configuration stuff. One idea is to add yml as a third configuration format. yml is more human readable than xml or even json. Actually yml fulfills the desire, I had to json. Json is really not that readable as I expected, since you have to be careful with commas and have to put all keywords in quotes. At the implementation side, the plan is to implement a yml parser in cxxtools for the serialization framework, which makes it simple to add it as a 3rd configuration format. Any comments? Tommi ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
