Raised This Month: $12 Target: $400
 3% 

Admin logging


Post New Thread Reply   
 
Thread Tools Display Modes
Caught off Guard
Senior Member
Join Date: Jan 2008
Old 05-25-2008 , 09:14   Re: Admin logging
Reply With Quote #21

hi,

is there any chance the admin logging files could go in their own folder within the logs folder so they are seperated and nice and clear.

thanks
Caught off Guard is offline
INFINITI
Junior Member
Join Date: May 2008
Location: Russia
Old 06-02-2008 , 08:52   Re: Admin logging
Reply With Quote #22

Very Nice
Thx!
INFINITI is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 06-24-2008 , 18:32   Re: Admin logging
Reply With Quote #23

I added some code to the plugin that puts the admin's user name in the file name. Files are now named admin_name_steam.log.

This probably will not work with admins_simple.ini as it does not store an admin name.
Attached Files
File Type: sp Get Plugin or Get Source (admin_logging_custom.sp - 1101 views - 1.8 KB)
__________________

Last edited by recon0; 06-29-2008 at 19:15.
recon0 is offline
dann
Senior Member
Join Date: Nov 2007
Old 06-24-2008 , 18:51   Re: Admin logging
Reply With Quote #24

thanks Ill be updating shortly.
dann is offline
dann
Senior Member
Join Date: Nov 2007
Old 06-25-2008 , 04:08   Re: Admin logging
Reply With Quote #25

i installed this and all it seems to do is to put an extra _ between admin and the steam id

new
admin__STEAM_0-1-7564545.log

old
admin_STEAM_0-1-7564545.log
dann is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 06-25-2008 , 04:58   Re: Admin logging
Reply With Quote #26

Quote:
Originally Posted by dann View Post
i installed this and all it seems to do is to put an extra _ between admin and the steam id

new
admin__STEAM_0-1-7564545.log

old
admin_STEAM_0-1-7564545.log
Thats right, if you read the code in the plugin, its done on purpose as "Windoze" can't cope with a ':' character, so the plugin swaps it to a '-', which "Windoze" can understand.

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
dann
Senior Member
Join Date: Nov 2007
Old 06-25-2008 , 06:13   Re: Admin logging
Reply With Quote #27

I probably didn't explain it very well up above. it doesn't put the admins actual name, only an extra underscore and leaves the name as admin.

it should look something like this:

dann__STEAM_0-1-7564545.log

but it looks like this:

admin__STEAM_0-1-7564545.log

this is what it used to look like:

admin_STEAM_0-1-7564545.log
dann is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 06-25-2008 , 09:07   Re: Admin logging
Reply With Quote #28

It doesn't do that, it creates the file based upon steam id

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Electric Warrior
Senior Member
Join Date: Jan 2005
Location: Portslade, East Sussex,
Old 06-25-2008 , 14:25   Re: Admin logging
Reply With Quote #29

Quote:
Originally Posted by MoggieX View Post
It doesn't do that, it creates the file based upon steam id

Matt

I think he may be refering to the custom version in post #23

That one does display the username of the admin before the Steam ID.
Electric Warrior is offline
Send a message via ICQ to Electric Warrior Send a message via AIM to Electric Warrior Send a message via MSN to Electric Warrior Send a message via Yahoo to Electric Warrior Send a message via Skype™ to Electric Warrior
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 06-26-2008 , 18:11   Re: Admin logging
Reply With Quote #30

Quote:
Originally Posted by dann View Post
I probably didn't explain it very well up above. it doesn't put the admins actual name, only an extra underscore and leaves the name as admin.

it should look something like this:

dann__STEAM_0-1-7564545.log

but it looks like this:

admin__STEAM_0-1-7564545.log

this is what it used to look like:

admin_STEAM_0-1-7564545.log
It shouldn't be doing that. Are you using admins_simple.ini? GetAdminUsername() might not work work properly with that admin system. I know it works fine with SB and admins.cfg.

The format is admin_name_steam.log. The admin__steam.log is because GetAdminUsername() is returning an empty string. The admin name is supposed to go between the two underscores.

Shouldn't plugin game be all? This doesn't have any mod specific code that I know of...
__________________

Last edited by recon0; 06-28-2008 at 19:34.
recon0 is offline
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 15:59.


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