In apache module where I have XDataService I do something like this:
Logger:=TTMSCustomLogger.Create;
Logger.LoadConfigurationFromFile(nil,' /var/log/apache2/logger.ini');
Logger.Debug('aaa');
the logger.ini file is like below:
[General]
Active=1
ExceptionHandling=0
TimeStampOutputMode=0
Filters=0;1;2;3
LogLevelFilters=0;1;2;3;4;5;6
Outputs=0;4;5;6
TimeStampFormat='{%"yyyy-mm-dd hh:nn:ss.zzz"dt}, '
LogLevelFormat=[{%s}]
NameFormat=[Name: {%s}]
ValueFormat=[Value: {%s}]
TypeFormat=[Type: {%s}]
[Managed.0.TTMSLoggerTextOutputHandler]
Active=1
ApplyOutputParameters=1
FileName=/var/log/apache2/scollector.log
The 'aaa' message was logged to apache log /var/log/apache2/error.log
'2020-10-07 14:21:14.483, '[Debug][Value: aaa]
but not in /var/log/apache2/scollector.log ... the file didn't create.
Is it possible to send the content of error.log file?
Where exactly is the code that logs the debug message?
Do you have permissions to create a file in /var/log/apache2?
Ad 1) it is error.log after apache restart error.log (687 Bytes)
Ad2) in atachment simple class where I try logging example.class.txt (1.8 KB)
Ad3) Yes I have permissions because /var/log/apache2 is log destination for apache server ... I think that file should be created on apache permissions.
standard error log has permission like below:
-rw-r--r-- 1 root root 684 Oct 7 18:34 error.log
for testing I created folder "filelog" with permissions for all and change output in logger.ini to this folder ... and nothing changed ... file log doesn't exist