From: Jaikit S. <jkt...@gm...> - 2010-09-29 17:42:07
|
I am currently using this hack for logging : self.jabber=xmpp.Client(self.jid.getDomain()) self.jabber._DEBUG._fh=open(self.getLogURL(),'w') #here both _DEBUG and _fh are suppose to be private variables. override the debug file handle. Thanks for pointing out log_file attribute. On Wed, Sep 29, 2010 at 12:59 AM, Yann Leboulanger <as...@la...>wrote: > Le 29/09/2010 09:34, jkt...@gm... a écrit : > > I am looking for some python logger solution. If nothing is available I > will redirect it. Thanks > > The debug class has a log_file attribute, but it's not possible to set > it from client class. So indeed nothing is available in xmpppy to log to > a file. That's not terrible because redirecting to a file is not easily > redable because of chars that are use to have color in debug output like > "[30;1m" > > -- > Yann > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > |