Topic: 读取Google Talk本地log文件的方法

  Print this page

1.读取Google Talk本地log文件的方法 Copy to clipboard
Posted by: Jove
Posted on: 2005-09-10 14:37

其实GTalk目前只保存少量的聊天记录,或许主要是帮你回想起上次你们在聊什么
log文件在 c:\Documents and Settings\UserName\Local Settings\Application Data\Google\Google Talk\chatlogs\

直接打开几乎看不懂,不过没有加密,简单的URL decode就可以了,以下是groovy code:
new File(logFileName).eachLine{println URLDecoder.decode(it,'UTF-8')} 


内容如下:

3
74de6ef0
01c5af82
outgoing
<cli:message from="someone@gmail.com/Talk.v64EC4014FD" to="theOther@gmail.com
/Talk.v64EC3FC0C6" type="chat" xmlns:cli="jabber:client"><cli:body>我加了他gmail
</cli:body><active xmlns="http://jabber.org/protocol/chatstat
es"/></cli:message>
incoming
<cli:message from="theOther@gmail.com/Talk.v64EC3FC0C6" to="someone@gmail.com
/Talk.v64EC4014FD" type="chat" xmlns:cli="jabber:client"><cli:body>哦
</cli:body><active xmlns="http://jabber.org/protocol/chatstates"/></cli:message>


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923