Logging
powerPLM uses Apache log4net as core logging library, and additionally PostSharp Diagnostics for extended Debug logging.
By default, all Cmdlet logs are written to the PowerShell console window as well as to the coolOrange powerGate log file.
The log file is located at ‘C:\Users\{USER}\AppData\Local\coolOrange\powerGate\Logs\powerGate.log’ and contains only Warnings and Errors. For quick access, use the powerGate Logs shortcut in the Start menu.
Log file location and behavior are fully controlled by the powerGate.log4net configuration. For details, refer to:
coolOrange powerGate Logging Guide
Customizing Logging for PLM Cmdlets
To adjust log levels or output, edit the central powerGate.log4net configuration file. This affects all powerGate components, including powerPLM Cmdlets.
For example, place the following logger section below the root logger entry:
...
</root>
<!-- Enable extended logging for PLM Cmdlets -->
<logger name="powerPLM.Cmdlets">
<level value="DEBUG" />
</logger>
Note
When changing the loglevel to DEBUG, PostSharp Diagnostics will be enabled and will log all the function calls into the log files. This could cause performance issues.