Overview
The default logging output created by the OpenFin Runtime is optimized for performance and to reduce the amount of disk space used. In certain circumstances, it is necessary to enable Verbose logging to capture more information.
For any production deployment, we recommend you only enable verbose when required for individual installations.
How to enable Verbose Logging:
Apply the '--v=1' Runtime Argument
Adding `--v=1` as a 'Runtime Argument' will enable verbose logging. Our recommendation is
Our Configuring Runtime Arguments article provides more information about on how to apply runtime arguments.
Our recommendation for a Production Application would be to use the shortcut or local system registry methods to target an individual installation.
Use the OpenFin API: System.setMinLogLevel
Verbose logging can be enabled during runtime by calling the OpenFin API method [System.setMinLogLevel](https://developer.openfin.co/jsdocs/stable/tutorial-system.setMinLogLevel.html). Application developers can use this method to enable dynamic control over the OpenFin logging level.
If the application allows access to the Dev console, the OpenFin System.setMinLogLevel can be called in a running session by following these steps:
- Right Click in the main application window
- Click on 'Inspect'
- Click on the 'Console' tab
- Copy the command below into the console window and hit enter:
fin.desktop.System.setMinLogLevel("VERBOSE");
Please note that verbose logging will be disabled when the application is restarted or refreshed.
Comments
0 comments
Please sign in to leave a comment.