SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 15/09/2016, 10:38 AM   #21
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 884
Reputation: 435
Default Re: Log plugin

Quote:
Originally Posted by JaydenJason View Post
log-plugin.inc(26) : error 017: undefined symbol "INFO"
You're probably using an older MySQL plugin. Upgrade to R39-6 or R40.
maddinat0r is offline   Reply With Quote
Old 15/09/2016, 10:58 AM   #22
JaydenJason
Gangsta
 
JaydenJason's Avatar
 
Join Date: Oct 2014
Location: teh netherlends
Posts: 715
Reputation: 51
Default Re: Log plugin

Quote:
Originally Posted by maddinat0r View Post
You're probably using an older MySQL plugin. Upgrade to R39-6 or R40.
Darn, I'm on r37
JaydenJason is offline   Reply With Quote
Old 15/09/2016, 11:03 AM   #23
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,938
Reputation: 1358
Default Re: Log plugin

In case you cannot/don't want to update, open a_mysql.inc and replace E_LOGLEVEL to E_MYSQL_LOGLEVEL. Or simply remove LOG_ from the constants to match.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System



www.SF-SE.net
play.sf-se.net:7777
Play now!
Konstantinos is offline   Reply With Quote
Old 17/09/2016, 12:05 PM   #24
MerryDeer
Banned
 
Join Date: Jun 2016
Posts: 727
Reputation: 8
Default Re: Log plugin

What permissions need set
MerryDeer is offline   Reply With Quote
Old 16/10/2016, 04:53 AM   #25
paulommu
Little Clucker
 
paulommu's Avatar
 
Join Date: Oct 2011
Location: Brazil
Posts: 35
Reputation: 6
Default Re: Log plugin

Great plugin. We should really get the printoutput option, since it's pretty useful while the server is at the development stage. For example, let's say I have the players log:

[INFO > PLAYERS] ThePlayer(22) robbed a bank.
[DEBUG > PLAYERS > MONEY] ThePlayer(22) received $5000, reason: BANK_ROBBERY
[DEBUG > PLAYERS] UpdatePlayerInfo(playerid: 22)
[ERROR > PLAYERS] Failed to update ThePlayer .INI file.

EDIT: There's no need to print the timestamp since it's already written on server_log.txt.
paulommu is offline   Reply With Quote
Old 17/11/2016, 07:01 AM   #26
MerryDeer
Banned
 
Join Date: Jun 2016
Posts: 727
Reputation: 8
Default Re: Log plugin

It's possible to check when server crash, just ongamemodeexit, but times then this callback not called, to save stats.
MerryDeer is offline   Reply With Quote
Old 04/12/2016, 03:57 PM   #27
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 884
Reputation: 435
Default Re: Log plugin

Quote:
Originally Posted by paulommu View Post
Great plugin. We should really get the printoutput option, since it's pretty useful while the server is at the development stage. For example, let's say I have the players log:

[INFO > PLAYERS] ThePlayer(22) robbed a bank.
[DEBUG > PLAYERS > MONEY] ThePlayer(22) received $5000, reason: BANK_ROBBERY
[DEBUG > PLAYERS] UpdatePlayerInfo(playerid: 22)
[ERROR > PLAYERS] Failed to update ThePlayer .INI file.

EDIT: There's no need to print the timestamp since it's already written on server_log.txt.
I'll definitely implement that sometime.

Quote:
Originally Posted by MerryDeer View Post
It's possible to check when server crash, just ongamemodeexit, but times then this callback not called, to save stats.
That's not possible, because when a crash occurs, the whole server is in a unstable state. If you call a plugin function after detecting a crash, and that plugin suddenly causes a crash while executing its function, everything goes down the sink and plugins like crashdetect or the log-core (the main logging library used here by this plugin and the MySQL plugin) wouldn't be able to properly execute. This would defeat the whole sense of detecting a crash.



v0.3 has been released.
This release breaks compatibility to all older versions! This means you can't use this version with the MySQL plugin version R41 or lower! Update to R41-2!
Changes:
  • breaking renamed server configuration variable 'logplugin_debuginfo' to 'logcore_debuginfo'
  • new feature: log lines now print a full call trace

Download, as always, here: https://github.com/maddinat0r/samp-log/releases
Feature suggestions, bug reports and constructive criticism is welcome.
maddinat0r is offline   Reply With Quote
Old 25/12/2016, 12:00 PM   #28
Humza
Gangsta
 
Humza's Avatar
 
Join Date: Oct 2014
Posts: 608
Reputation: 106
Default Re: Log plugin

Code:
[12:52:01]   Loaded.
[12:52:01]  Loading plugin: log-core.so
[12:52:01]   Plugin does not conform to architecture.
[12:52:01]   Failed.
Any idea? Using Ubunty 16.04 32 bit
__________________
Humza is offline   Reply With Quote
Old 25/12/2016, 12:54 PM   #29
oMa37
High-roller
 
oMa37's Avatar
 
Join Date: Feb 2016
Posts: 1,000
Reputation: 143
Default Re: Log plugin

Quote:
Originally Posted by Humza View Post
Code:
[12:52:01]   Loaded.
[12:52:01]  Loading plugin: log-core.so
[12:52:01]   Plugin does not conform to architecture.
[12:52:01]   Failed.
Any idea? Using Ubunty 16.04 32 bit
It seems like you should load 'log-plugin.so' not 'log-core.so'.
oMa37 is online now   Reply With Quote
Old 31/12/2016, 05:20 AM   #30
maxisaibot
Big Clucker
 
maxisaibot's Avatar
 
Join Date: Jun 2011
Location: Israel
Posts: 51
Reputation: 3
Default Re: Log plugin

How can i create dynamic date format log file name? Example car/1/car-1-2016-12-30.log "CreateLog" looks static
__________________
maxisaibot is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos7 - Streamer plugin and crashdetect plugin Su37Erich Server Support 3 12/08/2016 12:18 AM
[MySQL] From StickenKid's plugin to BlueG's plugin jessejanssen Scripting Help 2 15/06/2014 01:20 AM
Very good plugin suggestion (for scripters) and easy to make for the Plugin Developers! Xentiarox Plugin Development 5 29/07/2012 10:48 PM
[Question] Plugin Load Failed : Plugin Does not conform to architecture. Gamer_Z Plugin Development 2 09/06/2011 06:42 AM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.