Forums » Suggestions
Client-side Chat Logs
I know that the chat information is logged in error.log, but that's only for the last time I played. What happens if I want to recall something from say a day ago? It's relatively minor, but maybe there could be a check box in the preferences for "Log Chats" and it automatically saves the chats by date and time in a folder somewhere.
You could always rename your log and then save it.
It would be an interesting feature. If it does not happen there are lots of ways to get around it.
Yea, but then that'd mean that every time I play, I have to dig through the Vendetta package to find the error.log and rename it. I suppose that I could try to write an applescript to do it all for me, but I don't know applescript.
there are lots of scripts you could use to do it, there are many people that play that know a lot of these things much better than I. Try going to IRC see if you can get some help there.
Here's a script for linux users. Put in wherever your bask scripts normally go.
#!/bin/bash
function check_for_chatfolder()
{
if [ ! -z "$1" ] && [[ $1=="TRUE" ]]
then
DATE=`date +%M\-%d\-%Y`
if [ ! -e ~/.vendetta/chat_logs/${DATE} || ! -d ~/.vendetta/chat_logs/${DATE} ]
then
rm -f ~/.vendetta/chat_logs/${DATE}
mkdir -p ~/.vendetta/chat_logs/${DATE}
return 0;
fi
else
return 1;
fi
}
if [ -e ~/.vendetta ]
then
if [ ! -e ~/.vendetta/chat_logs ]
then
mkdir ~/.vendetta/chat_logs ]
fi
if [ -e ~/.vendetta/errors.log ]
then
check_for_chatfolder "TRUE"
TIME=`date +%H\_%m\_%S`
DATE=`date +%M\-%d\-%Y`
mv ~/.vendetta/errors.log ~/.vendetta/chat_logs/${DATE}/${TIME}
fi
exec /usr/local/bin/vendetta
TIME=`date +%H\_%m\_%S`
DATE=`date +%M\-%d\-%Y`
mv ~/.vendetta/errors.log ~/.vendetta/chat_logs/${DATE}/${TIME}
fi
Now run vendetta with "startvendetta" instead of "vendetta". Make sure the script's containing directory is in your ${PATH}. I use ~/bin/.
#!/bin/bash
function check_for_chatfolder()
{
if [ ! -z "$1" ] && [[ $1=="TRUE" ]]
then
DATE=`date +%M\-%d\-%Y`
if [ ! -e ~/.vendetta/chat_logs/${DATE} || ! -d ~/.vendetta/chat_logs/${DATE} ]
then
rm -f ~/.vendetta/chat_logs/${DATE}
mkdir -p ~/.vendetta/chat_logs/${DATE}
return 0;
fi
else
return 1;
fi
}
if [ -e ~/.vendetta ]
then
if [ ! -e ~/.vendetta/chat_logs ]
then
mkdir ~/.vendetta/chat_logs ]
fi
if [ -e ~/.vendetta/errors.log ]
then
check_for_chatfolder "TRUE"
TIME=`date +%H\_%m\_%S`
DATE=`date +%M\-%d\-%Y`
mv ~/.vendetta/errors.log ~/.vendetta/chat_logs/${DATE}/${TIME}
fi
exec /usr/local/bin/vendetta
TIME=`date +%H\_%m\_%S`
DATE=`date +%M\-%d\-%Y`
mv ~/.vendetta/errors.log ~/.vendetta/chat_logs/${DATE}/${TIME}
fi
Now run vendetta with "startvendetta" instead of "vendetta". Make sure the script's containing directory is in your ${PATH}. I use ~/bin/.