Custom Log

Could please suggest different ways to write custom logs through plugin?

Also which location we can write the log without any permission issues.

Plug-ins runs differently in the three different environments: Smart Client (SmartClient), Event Server (Service) and Management Client (Administration).

The three articles on debugging plug-ins all mentions how to use the logging for the environment, so I will start by supplying three links.

https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

https://developer.milestonesys.com/s/article/debugging-techniques-for-Event-Server-plugins

https://developer.milestonesys.com/s/article/debugging-techniques-for-Management-Client-plugins

If you prefer you can ignore the built-in logging that is part of MIP SDK and implement your own. Where Milestone uses [C:\ProgramData\Milestone](file:C:/ProgramData/Milestone) you could then implement your own and perhaps use something like [C:\ProgramData\MyCompany,](file:C:/ProgramData/MyCompany,) using [C:\ProgramData\x](file:C:/ProgramData/x) is a way to avoid some of the permissions issues.