![]() |
[Library] samp-logging | Log gamemode - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13) ---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31) ---- Thread: [Library] samp-logging | Log gamemode (/showthread.php?tid=1337) |
samp-logging | Log gamemode - Mergevos - 2020-11-11 This library allow you to use few functions to log your gamemode.
Installation
Simply install to your project:
Code: [/align] Include in your code and begin using the library:
Code: [/align] Important note
It does need a latest version of the community compiler. You can download it from here: https://github.com/pawn-lang/compiler
Usage
There're 4 functions. Since the last version has had params for line and file name, this one doesn't.
File and line are now automatically detected and it returns the full path to the file and line number.
This function logs an debug message.
Code: [/align] This function logs a fatal error. It ends server after being executed.
Code: [/align] This function logs a verbose message. It outputs amx backtrace via crashdetect.
Code: [/align] This function logs an info message.
Code: [/align] This function logs an error message.
Code: [/align] This function logs an usage message.
Code: [/align] Testing
To test, configure pawn.json and simply run the package:
Code: [/align] RE: samp-logging | Log gamemode - Pinch - 2020-11-11 Incomparable to samp-logger but good job... Not good not terrible Edit: At least credit Southclaws xD |