How does EnvironmentManager.Instance.Log work, where do Logs end up? Is there a special file somewhere or is it not supported for MIPSDK plugins

How does EnvironmentManager.Instance.Log work, where do Logs end up? Is there a special file somewhere or is it not supported for MIPSDK plugins.

EnvironmentManager.Instance.Log works for all the MIP environments.

Where the log is actually written depends on the environment.

In standalone the log is at - [C:\ProgramData\Milestone\MIPSDK](file:C:/ProgramData/Milestone/MIPSDK)

In Event Server the log is at - [C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Event Server\logs\MIPLogs

In Management Client the log is at - [C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Management Client\Logs

In Smart Client the log is at - [C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Smart Client\MIPLogs

In the case of Smart Client there is another obstacle; the Smart Client logging is per default not enabled, read how to handle this here.

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