Is it possible to append entries to a license manager log file rather than overwrite them?

62 views (last 30 days)
Every time I restart the license manager, the logfile gets overwritten with new information. Is there any way to add entries to a logfile rather than overwrite them?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Aug 2023
Edited: MathWorks Support Team on 8 Aug 2023
You can set up the network license manager so that the vendor daemon log file is persistent. To create such a log, you will need to add the DEBUGLOG + feature to your options file:
DEBUGLOG +<path to log file>
e.x. DEBUGLOG +"C:\Program Files\MATLAB\R2023a\etc\lmlog.txt"
When specifying a log file, DO NOT specify the license manager log file (lmlog.txt or lm_TMW.log) that is used in lmtools, as this will result in data loss. The log file can be in any directory.
Once the Options File has been updated, you must restart the license manager in order for these changes to take effect. Again, this log file will be just for the MATLAB vendor daemon. Any information from lmgrd will be recorded in the main log file.
NOTE: If using "lmstart" to start the license manager on Linux/Mac, the log file does not get overwritten.  Entries to the log file are appended to the existing log file.
To learn how to create an options file, please consult the article below:

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!