ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Directory structure for chat logs.

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Implemented Requests
View previous topic :: View next topic  
Author Message
EarthQuake
Wicked Sick!


Joined: 02 Apr 2004
Location: Athens, Ohio. Dieblieber gonna getcha!

PostPosted: Tue Feb 14, 2012 7:54 am    Post subject: Directory structure for chat logs. Reply with quote

Since ZLauncher/ZIRC doesn't have any method of browsing my chat logs, I often find myself having to manually sort through thousands of text files to find a particular conversation I've previously had. Is there some way you guys can do one of two things:

1. Provide a built-in log browser that allows me to filter my logs to help me find what I need?

2. Provide an option to write logs to the chatlog directory according to some directory structure (Like username/network/window/date)?

Thanks. And please.

Peaches.
Back to top
View user's profile Send private message Send e-mail
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Tue Feb 14, 2012 7:17 pm    Post subject: Reply with quote

You can use Windows File Search to find a word or phrase in a file.
Just go to the log files directory, search for *.log and enter a word or phrase.


Looks different in Win7
Back to top
View user's profile Send private message Visit poster's website
Cleo555
has entered the game!


Joined: 10 Nov 2011
Location: US

PostPosted: Tue Feb 14, 2012 7:58 pm    Post subject: Reply with quote

Even if there are programs for searching, renaming each file would be a daunting task. The way the files are named are kinda lame, and it'd be nice to be able to make it save it as a different format of my choice.
Back to top
View user's profile Send private message
AF-Domains.net
Dark Messenger of IRC


Joined: 01 Jun 2002
Location: United Kingdom

PostPosted: Wed Feb 15, 2012 1:26 pm    Post subject: Reply with quote

What do you mean renaming the files?

That was never indicated.

The naming is as follows:
date-nickname-address-tab.log

Though -tab will only appear for non-server tabs.

That is just fine.

Just describing it as "lame" is completely unhelpful, not to mention intensely irritating.

You can choose the format you want the logs saved as, you're given the option in the ZRC Settings -> Logging tab in the Format combobox:
Plain Text
UTF-8 Text
Unicode Text
HTML
Back to top
View user's profile Send private message Visit poster's website
phenex2
Unstoppable!


Joined: 10 Jan 2008

PostPosted: Wed Feb 15, 2012 3:48 pm    Post subject: Reply with quote

i usually use the 'stupid' windows search when i am browsing the logs.
when you are looking for a particular set of files you can just enter separate keyword in the filename search: e.g. i want to see all logs with eq from 2011 i type '2011 earthquake'. if you want to search for keywords inside the file you can do the thing krawa mentioned. you can even combine it with the filename search i explained.
for searching inside the logs i have cygwin installed and use grep. its a bit more flexible than the windows search.
Back to top
View user's profile Send private message
Raider
Lazy Admin


Joined: 29 Jul 2002

PostPosted: Wed Feb 15, 2012 3:57 pm    Post subject: Reply with quote

I believe she means naming convention, not format. The way the files are named makes it somewhat inconvenient for sorting purposes. For example, you can't sort the files by nick.

The files are named like: 2012-02-15-kilgore-irc.zdaemon.org-Raider.log

If it were named: kilgore-irc.zdaemon.org-Raider-2012-02-15.log it could be sorted easily by the nick. I think she's suggesting an option that lets the user decide how the files will be named.

Irssi and other clients have such an option. The way my irclogs are organized is first saved to the following directory: ~/irclogs/2012/zdirc/
The files are named like this: kilgore.02-12.log


Last edited by Raider on Wed Feb 15, 2012 4:03 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
AF-Domains.net
Dark Messenger of IRC


Joined: 01 Jun 2002
Location: United Kingdom

PostPosted: Wed Feb 15, 2012 3:58 pm    Post subject: Reply with quote

This is being looked into.

Related to (2) though, not (1).
Back to top
View user's profile Send private message Visit poster's website
EarthQuake
Wicked Sick!


Joined: 02 Apr 2004
Location: Athens, Ohio. Dieblieber gonna getcha!

PostPosted: Wed Feb 15, 2012 11:38 pm    Post subject: Reply with quote

Might I add a suggestion here for option 2...

Some applications, let's say music ripping software, have a text field where you may actually enter your own directory format using something similar to variables. An couple examples from the Fre:ac program I use:

Code:
"<artist>\<album>\<title>"
"<artist>\<artist> - <title>"
"<artist> - <album>\<track> - <title>"


Something like this would provide the ultimate flexibility. It's just a matter of deciding upon a few "variables", say username, network, window (channel/nick), date and having the text field simply be the path structure to use in the chatlogs directory. Anything not a variable is considered part of the file path/name pattern.

As an additional feature, perhaps there could be a command button to actually launch an explorer window to the chatlogs directory, so I can immediately access them to look around.

All this should be relatively simple to do.
Back to top
View user's profile Send private message Send e-mail
Cybershark
Spamming!


Joined: 05 Jan 2005
Location: off the grid, but still fighting for the users!

PostPosted: Thu Feb 16, 2012 2:13 am    Post subject: Reply with quote

Just plain lol @ irc requests.

But greater lols at the chivalry herepresent.
Back to top
View user's profile Send private message Visit poster's website
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Fri Feb 24, 2012 11:25 pm    Post subject: Reply with quote

Done.






You can find it on the latest ZRC. Don't ask for more log extravaganza though; enough is enough.
Back to top
View user's profile Send private message Visit poster's website
EarthQuake
Wicked Sick!


Joined: 02 Apr 2004
Location: Athens, Ohio. Dieblieber gonna getcha!

PostPosted: Wed Feb 29, 2012 11:25 pm    Post subject: Reply with quote

Thanks for this, it's really useful and keeps things tidy. Good work.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Implemented Requests All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group