Wolfram Computation Meets Knowledge

How can I enable logging with MathLM?

MathLM logs its activity if launched with the “-logfile” flag.

To begin collecting log messages in the file filename, start MathLM from the command line using:

mathlm -logfile filename

Note that you need to have write permissions to the specified file’s directory. The log file will contain messages of the following form:

hostname.domain.com - username [01/Jan/2020:21:01:01] "MathLM 12.1 executable launched" ".\mathlm" -
hostname.domain.com - username [01/Jan/2020:21:01:01] "Verbosity level specified" "1" -
hostname.domain.com - username [01/Jan/2020:21:01:01] "Logging verbosity level specified" "3" -
hostname.domain.com - username [01/Jan/2020:21:01:01] "Hostname" "hostname.domain.com" -

These messages are comprised of the host name, username, a timestamp and the specific message.

The “-loglevel n” flag allows adjusting the level of verbosity from its default value of 3 to any number between 1 (least verbose) and 4 (most verbose). The types of messages logged at each verbosity level are described in detail here.

If necessary, you can customize the log messages’ format.

Is this article helpful?
Yes
No

Any comments?

Thank you for your feedback.

Submit

Contact Support

Whether you have a question about billing, activation or something more technical, we are ready to help you.

1-800-WOLFRAM (+1-217-398-0700 for international callers)

Customer Support

Monday–Friday
8am–5pm US Central Time

  • Product registration or activation
  • Pre-sales information and ordering
  • Help with installation and first launch

Advanced Technical Support (for eligible customers)

Monday–Thursday
8am–7pm US Central Time

Friday
8:30–10am & 11am–5pm US Central Time

  • Priority technical support
  • Product assistance from Wolfram experts
  • Help with Wolfram Language programming
  • Advanced installation support