Where could I find the log file in case of windows service

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
ggokka
Sr. Member
Sr. Member
Posts: 17
Joined: 03 Jul 2015, 02:34

Where could I find the log file in case of windows service

Post by ggokka »

I know the log file's location of OPC UA console application.
It located in "C:\Users\{user}\AppData\Local\UnifiedAutomation\Logs"

However when I start it as a windows service, I can not find any log file in the location of AppData.
The windows service start with Network Service account.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Where could I find the log file in case of windows servi

Post by Support Team »

If you are writing to a user specific AppData directory, you must make sure that the credentials of the service are allowed to do so.

Please refere to the SDK documentation before using the command line parameter "/install":
1) set the ServiceName
2) set the InstallAsService
within the InstallationSettings plus make sure that the trace is enabled and that you have write permissions on the path location you have configured.

On the .NET DemoServer the tracing works fine when being installed as service.

Best Regards
Support Team

Post Reply