Does amxx_logging 3 work?
I noticed a bug around amxx_logging setting. When cstrike/addons/amxmodx/logs directory is not writable, amxx does not print error messages to the terminal, even if amxx_logging is set to 3. When amxx_logging is set to 3 and cstrike/logs is writable, amxx still prints nothing to the terminal. Looks like amxx first checks for the directory to be writable and then enables/disables logging regardless of the amxx_logging setting.
Also, I do not understand why amxx does not write error messages to cstrike/logs when amxx_logging is set to 3 and the user has sufficient permissions to write to cstrike/addons/amxmodx/logs. I tested with the following code: PHP Code:
PHP Code:
|
Re: Does amxx_logging 3 work?
It seems that if the if the directory set for "amxx_logs" (default is "addons/amxmodx/logs") is not writable, it will set "amxx_logging" to 0. I would agree that this is a bug and you should see if it's already reported on GitHub and if not create an issue. The workaround would be to set "amxx_logs" to the "logs" instead of "addons/amxmodx/logs" (verify that this works and add that to your bug report on GitHub).
|
Re: Does amxx_logging 3 work?
I have created an issue: https://github.com/alliedmodders/amxmodx/issues/1084
"The workaround would be to set "amxx_logs" to the "logs" instead of "addons/amxmodx/logs" (verify that this works and add that to your bug report on GitHub)." It works but AMXX creates error_* files for errors in cstrike/logs. I thought that amxx_logging 3 should redirect all messages/errors to standard HL log system, i.e. it should write to L${MONTH}-${DAY}-${NUMBER}.log and not create additional files. Am I misunderstood this setting? |
Re: Does amxx_logging 3 work?
Quote:
I would say it's easy to interpret error logs as something very different from a "log message" since error messages are solely for debugging purposes and are supposed to be rare. So, in my opinion, it's reasonable to think that the "amxx_logging" setting doesn't affect error logs. |
Re: Does amxx_logging 3 work?
Quote:
|
Re: Does amxx_logging 3 work?
Yes, that is the code I was referencing my posts.
|
Re: Does amxx_logging 3 work?
Quote:
|
Re: Does amxx_logging 3 work?
Quote:
|
Re: Does amxx_logging 3 work?
Quote:
|
Re: Does amxx_logging 3 work?
I would say it's easy to interpret error logs as something very different from a "log message" since error messages are solely for debugging purposes and are supposed to be rare. So, in my opinion, it's reasonable to think that the "amxx_logging" setting doesn't affect error logs.
|
All times are GMT -4. The time now is 05:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.