Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)chatlog
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: chatlog  (Read 3169 times) Bookmark and Share
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« on: April 16, 2011, 08:28:11 AM »

hello
Could you modify this plugin http://forum.bigbrotherbot.net/plugins-by-courgette/chatlogger-plugin-v0-2-0/120/ so that the logs were not written into the database. I want them to be written to a log file on the server?
I do not want to install Echelon. therefore, I ask you for help

For example
name of log file: chat_logs_2011_03_01.log
its content:
2011/04/11 23:20:53  TeamChat     Playername        <playersay>
2011/04/11 23:29:31  All                 Playername        <playersay>

something like
thanks in advance
« Last Edit: April 16, 2011, 08:30:37 AM by -real- » Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, COD5, COD7, Homefront
Posts: 211
Offline Offline
« Reply #1 on: April 16, 2011, 12:29:59 PM »

The log file would become so large and unwieldy so quickly I don't think it would work well.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #2 on: April 16, 2011, 01:16:03 PM »

I've updated the banlist plugin as suggested. The log file will be rotated on a regular basis (can be hourly, daily, weekly)
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #3 on: April 16, 2011, 09:38:11 PM »

I've updated the banlist plugin as suggested. The log file will be rotated on a regular basis (can be hourly, daily, weekly)
Um, what? Wrong topic?
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #4 on: April 17, 2011, 12:55:38 AM »

Thanks, but can you somehow make a map of Cyrillic?

Code:
110417 11:43:01 DEBUG AdminPlugin: OnSay handle 5:"??????"
110417 11:43:01 DEBUG ChatloggerPlugin: @20 (ReaL-[UA]) ALL ??????
110417 11:43:01 DEBUG ChatloggerPlugin: writing to file
110417 11:43:01 ERROR STDERR Traceback (most recent call last):

110417 11:43:01 ERROR STDERR   File "/usr/lib64/python2.6/logging/__init__.py", line 791, in emit

110417 11:43:01 ERROR STDERR     stream.write(fs % msg.encode("UTF-8"))

110417 11:43:01 ERROR STDERR UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 41: ordinal not in range(128)


I and my server in the Ukraine, and we communicate in Russian
English is not relevant for us
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: April 17, 2011, 01:24:03 AM »

can you restart your bot, enter the game, say some stuff with Cyrillic chars and post your full b3.log ?
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #6 on: April 17, 2011, 02:13:33 AM »

yeah, look in attach

[attachment deleted by maintenance]
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #7 on: April 17, 2011, 02:20:37 AM »

the latest version of the banlist plugin which is able to save log to file requires B3 v1.6
You need to update your bot if you want this.
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #8 on: April 17, 2011, 02:37:10 AM »

ok, and it will write logs chat in Cyrillic? exactly?
I will try. tnx
Logged
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #9 on: April 22, 2011, 12:52:21 PM »

I update my B3 to v 1.6
but I still have a problem
110422 23:26:28   ERROR   STDERR   File "/usr/lib64/python2.6/logging/__init__.py", line 791, in emit

110422 23:26:28   ERROR   STDERR     stream.write(fs % msg.encode("UTF-8"))

110422 23:26:28   ERROR   STDERR UnicodeDecodeError: 'ascii' codec can't decode byte 0xf2 in position 88: ordinal not in range(128)


how to update this /usr/lib64/python2.6/logging/__init__.py  file???
help me please. i dont understand what is wrong.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: April 22, 2011, 01:04:11 PM »

could you try with that code ? https://github.com/courgette/big-brother-bot/zipball/master
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #11 on: April 22, 2011, 01:18:18 PM »

allready error
what is this file /usr/lib64/python2.6/logging/__init__.py ?
how he situated there?

Please write me in detail how to upgrade the B3 including the kernel

110423 00:16:50   ERROR   STDERR '  File "/usr/lib64/python2.6/logging/__init__.py", line 791, in emit\n'
110423 00:16:50   ERROR   STDERR '    stream.write(fs % msg.encode("UTF-8"))\n'
110423 00:16:50   ERROR   STDERR "UnicodeDecodeError: 'ascii' codec can't decode byte 0xf2 in position 88: ordinal not in range(128)\n"
110423 00:16:50   ERROR   STDERR 'Traceback (most recent call last):\n'
110423 00:16:50   ERROR   STDERR '  File "/usr/lib64/python2.6/logging/__init__.py", line 791, in emit\n'
110423 00:16:50   ERROR   STDERR '    stream.write(fs % msg.encode("UTF-8"))\n'
110423 00:16:50   ERROR   STDERR "UnicodeDecodeError: 'ascii' codec can't decode byte 0xf2 in position 63: ordinal not in range(128)\n"
110423 00:16:50   DEBUG   ChatloggerPlugin: writing to file
110423 00:16:50   ERROR   STDERR 'Traceback (most recent call last):\n'
110423 00:16:50   ERROR   STDERR '  File "/usr/lib64/python2.6/logging/__init__.py", line 791, in emit\n'
110423 00:16:50   ERROR   STDERR '    stream.write(fs % msg.encode("UTF-8"))\n'
110423 00:16:50   ERROR   STDERR "UnicodeDecodeError: 'ascii' codec can't decode byte 0xf2 in position 44: ordinal not in range(128)\n"
« Last Edit: April 22, 2011, 01:22:11 PM by -real- » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: April 22, 2011, 01:20:25 PM »

could you post the full log ?
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod4
Posts: 68
Offline Offline
WWW
« Reply #13 on: April 22, 2011, 01:33:10 PM »

here

[attachment deleted by maintenance]
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #14 on: April 22, 2011, 01:57:22 PM »

update the banlist plugin and try again (current version is 2.3.1)
Logged

Tags:
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal