In rev4636 tvo introduced an abstract "zone" model to improve the output handling. Could someone please give an "official" statement how I can use this? What is the concept behind it? Which zone can I use for what?
Thanks in advance
LogOutput Zones
I didn't add any zones yet, but the idea would be to have an enum with zones (not added yet), and then you do stuff like logOutput.Print(ZONE_NET, "bla") or logOutput.Print(ZONE_SIM, "Could not reach destination").
(Actually the only thing I did was renaming priority->zone
)
Then a filter could be added to logOutput based on the configuration file, so only enabled stuff gets written to the log.
It would be much easier that way to, for example, add strace like functionality to e.g. the filesystem functions without spamming the infolog too much in the default case (ie. the ZONE_FILESYSTEM would be disabled by default).
If someone then has a problem with the filesystem, you should (ideally) be able to say: check the filesystem zone in the debug tab in the settings program and re-run Spring. Then pastebin the log file.
I also was too lazy to go through all occurences of logOutput and add a zone to them.
For now I'd recommend to ignore it, I hope to finish it somewhat more later (ie. add zones, make zones work with the iostream like operators, add filtering etc.)
(Actually the only thing I did was renaming priority->zone

Then a filter could be added to logOutput based on the configuration file, so only enabled stuff gets written to the log.
It would be much easier that way to, for example, add strace like functionality to e.g. the filesystem functions without spamming the infolog too much in the default case (ie. the ZONE_FILESYSTEM would be disabled by default).
If someone then has a problem with the filesystem, you should (ideally) be able to say: check the filesystem zone in the debug tab in the settings program and re-run Spring. Then pastebin the log file.
I also was too lazy to go through all occurences of logOutput and add a zone to them.
For now I'd recommend to ignore it, I hope to finish it somewhat more later (ie. add zones, make zones work with the iostream like operators, add filtering etc.)