View Single Post
Author Message
Zynda
Member
Join Date: Jul 2011
Old 07-11-2016 , 19:19   Reasoning behind log_amx > log_to_file
Reply With Quote #1

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.
Zynda is offline