> Tommi Mäkitalo <[email protected]> hat am 29. August 2013 um 20:11 geschrieben:
[...]
> I've thought about that and I may have an idea, how to make all happy.
> There is already a configuration class, which has a deserialization
> operator. The problem is, that it is just internally used. I have to do
> some refactorization and make the configuration class public. Then one
> can either read the class using a deserializer or fill it manually. It
> will then look like this:
>
> cxxtools::LogConfiguration logConfiguration;
> logConfiguration.setRootLogger(INFO);
> logConfiguration.setCategory("foo.bar", DEBUG);
> logConfiguration.setFile("output.log");
> log_init(logConfiguration);
That's great! Perfect!
> Of course the current interface will be kept, so nothing will change for
> those, who use cxxtools logging already.
>
> But the plan is not to stop here. I talked with a colleague of me and we
> decided, that it would be great, if the configuration could be changed
> at runtime. One can offer some interface (say rpc call or similar) to
> change the configuration without restart. This will need some more
> rethinking, but I feel, that it would be worth.
Yes I think that's a great win too!
Best regards
Olaf
-------------------|-------------------|-------------------|-------------------|
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general