SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/09/2016, 11:38 AM   #21
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 881
Reputation: 459
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, 11:58 AM   #22
JaydenJason
Gangsta
 
JaydenJason's Avatar
 
Join Date: Oct 2014
Location: Netherlands
Posts: 723
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, 12:03 PM   #23
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,967
Reputation: 1370
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
Konstantinos is offline   Reply With Quote
Old 17/09/2016, 01: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, 05:53 AM   #25
paulommu
Little Clucker
 
paulommu's Avatar
 
Join Date: Oct 2011
Location: Brazil
Posts: 41
Reputation: 7
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, 08: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, 04:57 PM   #27
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 881
Reputation: 459
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, 01:00 PM   #28
HydraHumza
Gangsta
 
HydraHumza's Avatar
 
Join Date: Oct 2014
Posts: 639
Reputation: 110
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
__________________
Owner of Call of Duty 4 Modern Warfare.

HydraHumza is offline   Reply With Quote
Old 25/12/2016, 01:54 PM   #29
oMa37
High-roller
 
oMa37's Avatar
 
Join Date: Feb 2016
Posts: 1,034
Reputation: 152
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 offline   Reply With Quote
Old 31/12/2016, 06:20 AM   #30
maxisaibot
Big Clucker
 
maxisaibot's Avatar
 
Join Date: Jun 2011
Location: Israel
Posts: 52
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 01:18 AM
[MySQL] From StickenKid's plugin to BlueG's plugin jessejanssen Scripting Help 2 15/06/2014 02:20 AM
Very good plugin suggestion (for scripters) and easy to make for the Plugin Developers! Xentiarox Plugin Development 5 29/07/2012 11:48 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 03:32 PM


All times are GMT. The time now is 07:24 AM.


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