View Single Post
OGQH
Junior Member
Join Date: Jul 2016
Location: Kazakhstan, Aktau
Old 07-11-2016 , 19:44   Re: Reasoning behind log_amx > log_to_file
Reply With Quote #2

Quote:
Originally Posted by Zynda View Post
After reviewing this sticky in the new plugins submission forum:
https://forums.alliedmods.net/showthread.php?t=21956

Most of the rules are self-explanatory or just makes sense as they are.
But I got curious about this one:
  • Use log_amx instead of log_to_file

This is such a blatant statement, especially considering that the functions in question are not truly alike. It's not like one is just an older deprecated version right?

What if a plugin wants their own custom log file? What about multiple log files for a complex plugin?
Is this functionality simply forbidden, are you supposed to only use one log file for everything?

I would appreciate if anyone could shed some light on this one for me since I use log_to_file a lot in a project of mine, and i actually got more than one log file to make things more organized.
log_amx displays a message in the file of the current session (on the launch date), eg L20160712.

Displays messages according to the type: [Date / Time] plugin and a message from the plugin.

Last edited by OGQH; 07-11-2016 at 19:47.
OGQH is offline
Send a message via Skype™ to OGQH