Raised This Month: $7 Target: $400
 1% 

[ANY] Chat Logger 2.0 Colorful RTF Logging Available Now!


Post New Thread Reply   
 
Thread Tools Display Modes
Author
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Plugin ID:
1942
Plugin Version:
2.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A simple chat logging tool for servers handy so you can ban clients that have been posting rude things in chat(racism swearing or whatever your server doesn't allow)
    Unapprover:
    Reason for Unapproving:
    Inactive author, failed to correct plugin within 3 months
    Old 09-07-2010 , 21:46   [ANY] Chat Logger 2.0 Colorful RTF Logging Available Now!
    Reply With Quote #1

    Today I bring to you a chat logger for you server owners.

    It's functions are simple it will log the time a chat was made the name and if their chat was team chat it will write the team name down in the chat log.

    Info:
    A chat_yearmonthday.txt file is created in the logs folder a new file is created whenever the day changes.

    Cvars:
    chat_log_version Version
    chat_log_enable "1" Enable logging of all chat
    chat_log_timeformat "%b %d |%H:%M:%S| %Y" This shows up as Sep 07 |2060| 2010 in the log (info about this HERE)
    chat_log_triggers "1" Log when a user uses a chat trigger such as !
    chat_log_sm_say", "1" Log sm_say in chat log?
    chat_log_sm_chat", "1" Log sm_chat in chat log?
    chat_log_sm_csay", "1" Log sm_csay in chat log?
    chat_log_sm_tsay", "1" Log sm_tsay in chat log?
    chat_log_sm_msay", "1" Log sm_msay in chat log?
    chat_log_sm_hsay", "1" Log sm_hsay in chat log?
    chat_log_sm_psay", "1" Log sm_psay in chat log?

    Note:Currently only supports say and say_team the sourcemod included says are not logged if people want those to be logged just let me know and I will add those. Alert me if a similar plugin exists.

    Installation:
    Click Get Plugin then cut/drag that file to plugins in the sourcemod folder

    History:
    1.0 - Initial Release
    1.0.1 - Increase in size of Print String to prevent incomplete chat logs
    1.1 - Added convars for the SM say commands and logging for them as well.
    2.0 - RTF file type version released, logs in .rtf format and has colorful chat print outs.
    Attached Thumbnails
    Click image for larger version

Name:	screenie.jpg
Views:	4478
Size:	59.1 KB
ID:	73053   Click image for larger version

Name:	rtfscreenie.jpg
Views:	5170
Size:	93.2 KB
ID:	73696  
    Attached Files
    File Type: sp Get Plugin or Get Source (chat_logger.sp - 3773 views - 7.6 KB)
    File Type: sp Get Plugin or Get Source (chat_logger_rtf.sp - 3027 views - 9.1 KB)
    __________________

    Last edited by McFlurry; 09-19-2010 at 23:01.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 09-08-2010 , 19:52   Re: [ANY] Chat Logger
    Reply With Quote #2

    Thanks for this.

    Ive been looking for a plugin like this and I would like the sourcemod chats to be included to see admin chat, etc.
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    SirCole
    Member
    Join Date: Nov 2006
    Old 09-09-2010 , 20:01   Re: [ANY] Chat Logger
    Reply With Quote #3

    are you able to add the ability to log this to a database, ie mysql.

    Idea been that we could make a simple php page that would query it, and I could even throw in a search function, this way it would make it easier to search for key things in the logs, for example when someone complains about getting abused ;)

    peace
    SirCole is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 09-09-2010 , 20:23   Re: [ANY] Chat Logger
    Reply With Quote #4

    Quote:
    Originally Posted by SirCole View Post
    are you able to add the ability to log this to a database, ie mysql.

    Idea been that we could make a simple php page that would query it, and I could even throw in a search function, this way it would make it easier to search for key things in the logs, for example when someone complains about getting abused ;)

    peace
    http://forums.alliedmods.net/showthread.php?p=817310

    There is this one that goes to a MySQL DB.
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    SirCole
    Member
    Join Date: Nov 2006
    Old 09-09-2010 , 20:27   Re: [ANY] Chat Logger
    Reply With Quote #5

    I guess you can tell how much attention I pay these days :/

    thankyou <3
    SirCole is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-10-2010 , 16:53   Re: [ANY] Chat Logger 1.1
    Reply With Quote #6

    Update to log all the SM say commands.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-11-2010 , 18:11   Re: [ANY] Chat Logger 1.1
    Reply With Quote #7

    Would it be possible to log chat colours? The log could then be formatted into RTF(rich text font) or something?
    __________________
    Silvers is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-11-2010 , 18:20   Re: [ANY] Chat Logger 1.1
    Reply With Quote #8

    Looking at an rtf file in notepad++ it seems very very possible I would just need a while to even get it working properly though.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-11-2010 , 18:37   Re: [ANY] Chat Logger 1.1
    Reply With Quote #9

    Nice one!! Thanks
    __________________
    Silvers is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-11-2010 , 19:00   Re: [ANY] Chat Logger 1.1
    Reply With Quote #10

    Hmm nevermind the previous thing it somehow will not write the file header before it decides to log the chat which means colors wont show up correctly and such
    __________________

    Last edited by McFlurry; 09-11-2010 at 19:09.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 00:26.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode