Summary
Log debugging information to the FNO log file.Synopsis
In custom Java classes, it may sometimes be useful to log critical debugging information to the FlexNet operations debug log file. This log file is called flexnet.log and is stored in the directory <ops_install_folder>\logs. Use the standard log4j library to implement logging, as detailed below
Discussion
To log debugging information to the flexnet.log file:
1. Add the following static variable declaration statement to the custom implementation class:
private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("flexnet");
2. Use the log reference for adding the statements as needed, for example:
log.info("$$$$ TEST $$$$ - OpsEsnGenerator.generateEntitlementID() Raw ID value : " + esn);
3. Depending on your requirements, you can add log.error(), log.debug(), log.warn(), log.info() and log.error() statements. Based on the System Configuration Log Level, the statements will be written to flexnet.log.
4. Compile the class and test. For compilation, make sure to keep the log4j-1.2.11.jar in the classpath. This jar file is available in the FNO installation in the directory <install_dir>\site\webapps\flexnet\WEB-INF\lib.
Related Articles
FlexNet Manager Suite log files and locations 182Number of Views Frequently Asked Questions: How do I gather log files and information for the Snow Support team? 167Number of Views How to Write Custom Messages in the DEBUG log using lc_log? 472Number of Views Verbose Build Log with MsBuild 17Number of Views Changing Log File Directory for FlexNet Operations On-Premises 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago