-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMXX does not print error message to the console if amxx_logs directory is not writable #1084
Comments
amxx_logging seems to be only for normal amxx logs as LogError totally ignores amxx_logging value (which i think it's nice as there won't be ppl disabling it and then saying that X its amxx's fault instead of their plugins makings 30 errors/sec) i really think it's great to have errors logged as another file instead of having to find errors on the regular logfiles as they may get huge Lines 260 to 267 in 27f451a
solutions may be
doing stuff like allowing to change the error log filename formatting or mixing both logfiles would have more cons than pros |
So there is no issue with Having errors to be placed to "normal messages" file may be useful because in this case errors will have context, i.e. you may see that some errors appear at the end of the round or under certain circumstances. I thought that |
Environment
Description
When
amxx_logging
is set to3
(HL logs) and the default log directory (cstrike/amxmodx/logs) is not writable, amxx will throw an error in the terminal even if it can write to cstrike/logs.When
amxx_logging
is set to3
andamxx_logs
is set tologs
, amxx prints errors to the terminal and logs them to cstrike/logs, however amxx creates error_20230918.log and does not utilize default HL log files.Problematic Code (or Steps to Reproduce)
Expected behavior
When amxx_logging is set to 3, AMXX should print errors to the terminal regardless of the state of cstrike/addons/amxmodx/logs directory. The directory that should be writable is cstrike/logs. It is also expected that AMXX will use default HL log mechanism, i.e. not create additional log files, both normal messages and errors should be written to L${MONTH}-${DAY}-${NUMBER}.log file (if I am not mistaken the meaning of
amxx_logging 3
).The text was updated successfully, but these errors were encountered: