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.
Where could I find the log file in case of windows service
Moderator: uasdknet
-
- Sr. Member
- Posts: 17
- Joined: 03 Jul 2015, 02:34
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: Where could I find the log file in case of windows servi
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
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