• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Chat Log

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
7 posts • Page 1 of 1

Postby mesut » Fri Apr 07, 2006 1:04 pm

I want all chat logs from a text file...

(i'm sory.. my english not very well :D )
mesut
New member
 
Posts: 4
Joined: Thu Apr 06, 2006 11:26 am
Location: istanbul / turkey
  • Website
Top

Postby Eminos » Fri Apr 07, 2006 6:32 pm

The chat log is saved in the PFCdataprivatechat"channelname"messages.data file ..

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Rhialto » Mon Apr 24, 2006 8:50 pm

Eminos: works great when opening with Wordpad. Except for french letters like à é Î.

What's missing is the possibility to have a log without having to use $params["max_msg"]. I guess we need a $params["log"] = true or false.

For our purpose, there is no need to set a size. Even if it reach 800K I'll do the cleanup...

For 1.x with multiple rooms there could be another option $params["logprivatechat"] = true or false.

Since I'm just about to run 0.9.2 with only 1 chat room (excellent for our need) I wonder if I could modify the code to get such a log. I guess it's a function call similar to the one that write the history, except there is no cleaner part.
Rhialto
Member
 
Posts: 30
Joined: Sat Apr 15, 2006 7:40 am
Location: Canada
Top

Postby Rhialto » Fri Apr 28, 2006 5:20 am

I got a temporary solution. The routine to clean the history file in phpfreechatcontainerfile.class.php is now disabled (//).

So I can now open the messages.data with OpenOffice with UTF-8 and all is fine!
Rhialto
Member
 
Posts: 30
Joined: Sat Apr 15, 2006 7:40 am
Location: Canada
Top

Postby phpfreechat » Fri Apr 28, 2006 10:12 am

be carrefull with this workaround, if the log file is coming too big, it will be very slow and your server will be overload.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Rhialto » Fri Apr 28, 2006 9:20 pm

kerphi wrote:be carrefull with this workaround, if the log file is coming too big, it will be very slow and your server will be overload.

Why slow? It only append to it? It does not read it all the time?

What I can do also is change the max_msg+50 to max_msg+1000 maybe. What do you suggest?
Rhialto
Member
 
Posts: 30
Joined: Sat Apr 15, 2006 7:40 am
Location: Canada
Top

Postby BIGjuevos » Mon May 22, 2006 1:38 am

I have an idea.

What you could also do, is since it is done in php, create a seperate log for each day, like if it is May 20, 2006 - a sample logfile could be:

Filename -- 20060520.channelname.log
--------------------------------------------
15:06:40 * BIGjuevos is connected
15:32:41 ‹BigJuevos› Hoodley Hoo!
15:39:30 ‹BigJuevos› (a1)
15:42:30 ‹BigJuevos› (a1)
15:44:52 ‹BigJuevos› (ip)
15:46:56 ‹BigJuevos› (})
15:49:40 ‹BigJuevos› (con1)
15:53:31 ‹BigJuevos› <3
15:56:54 ‹BigJuevos› (con1_
15:56:59 ‹BigJuevos› (con1)
16:11:30 ‹BigJuevos› Thanks to Nick Mahon and Ken for theme idea.
16:12:07 ‹BigJuevos› dude, that time is soo off
16:53:32 * BIGjuevos disconnected (timeout)
-----------------------------------------------

and just change the filename for each day.


To make it simple, just append the message to the corresponding logfile after a new message goes into the chatroom.

This accomplishes several things:
1) creates orginization
2) solves the huge overdemanding logfile problem, preventing server lag
3) allows for easy maintenance by cron jobs, to for example delete any logfile more than 5 days old, to prevent cluttering.

I hope this idea helps.
Last edited by BIGjuevos on Mon May 22, 2006 2:02 am, edited 1 time in total.
umm... yeah.
BIGjuevos
New member
 
Posts: 4
Joined: Mon May 22, 2006 12:20 am
Location: Virginia
  • Website
Top


Topic locked
7 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 9 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub