question

Upvotes
Accepted
38 1 0 5

RFA Message Tracing

Hi all

Using RFA.NET 8, I've just noticed that message tracing (\Connections\...\traceMsgToFile = true)

Doesn't work when running as a Windows Service. I've checked permissions to the log folder, tried running the Service under my own log in credentails, but nothing. No file is produced..

Running the same application from the console works though.

Is there a work-around for this?

Thanks

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
7.6k 15 6 9

@RicknBaker

As far as I know services are started from Windows Service Control Manager and the running directory is system directory %WinDir%\System32 or %WinDir%\SysWOW64 for 64bit , you may search the RSSL trace file from the system directory.

Alternative solution is that you can change traceMsgFileName to absolute path.

For example,

You may create folder name "RSSLTraceLogs" under some drive and set the configuration point to the path like the following sample.

\Connections\<Connection_RSSL>\traceMsgFileName = "C:\RSSLTraceLogs\RSSLConsumerTrace" 

RFA will generate RSSLConsumerTrace_<pid>.xml under C:\RSSLTraceLogs.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
38 1 0 5

Yeah, looks like the logfiles were hiding away in windows\system32. I'll set an absolute path. Thanks!

Also, is there anyway to get that logger to use UTC instead of localtime? I've got servers all over the place and it can be hard to consolidate the logs.

Rick

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

RFA logger usually use machine time. No configuration to change it.

That's a shame. Maybe you could consider adding another trace flag to enable UTC

Click below to post an Idea Post Idea