How to get configuration attribute from TMSLogger?

Hi,
I load logger configuration from file, text output handler is configured like below:

[Managed.0.TTMSLoggerTextOutputHandler]
Active=1
ApplyOutputParameters=1
FileName=G:\DelphiProjects\DANSOFT_dotwWebService\Win32\Release\DANSOFT_dotwpwa_WebService.log

In my app I load configuration like this:
TMSLogger.LoadConfigurationFromFile('logger.ini');

How can I get FileName attribute after load configuration?
I can't see any configuration handle in TMSLogger object.

Regards,

Hi Tomasz,


Here is sample code you can use as a start:



procedure TForm4.Button2Click(Sender: TObject);
var
  Handler: TTMSLoggerBaseOutputHandler;
begin
  for Handler in TMSLogger.ManagedOutputHandlers do
    if Handler is TTMSLoggerTextOutputHandler then
      ShowMessage(TTMSLoggerTextOutputHandler(Handler).FileName);
end;

Thanks for your help ... now all is clear :)