-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Merlijn Hello Maarten
I had a look into 'userinterfaces/terminal_interface.py'. As it looks to me we would have first to make a duplicate of it using 'logging' to replace 'targetStream.write' in 'printColorized'. (of course there will be some additional coding to adopt it well to the 'Colorized' scheme, since 'logging' does not support this - essentially we have to drop it here)
And voila we have a bot framework using the logging module, which whould have the features of printing messages to file AND console at the same time as well as other cool stuff... (!)
But since I do not have any commit access it is left to one of you to make this happen... ;)
Greetings DrTrigon
On 23.12.2011 19:17, Maarten Dammers wrote:
Hi Merlijn,
Op 22-12-2011 21:48, Merlijn van Deen schreef:
Last but not least, feel free to rewrite all bots to use the python logging module, as it exists for long enough to be used (since python 2.3).
I think we can distinguish two kinds of output: 1. Output for user interaction (diff, followed by user interaction) 2. Various levels of information
If a bot is running in autonomous mode all messages fall in the second category. We should probably start using the python logging module and define an output level (see https://en.wikipedia.org/wiki/Syslog) for every message. Sounds like a nice programming project. Who is up to the challenge? ;-)
Maarten
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l