Hi,
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.
What's wrong?