Contenido principal

Manage Log Files Using Admin Portal

R2026b

MATLAB® Production Server™ writes log data to a server instance log file. To view the log file, click the Server Logs tab. In Server Logs, the Main Log tab displays messages from newest to oldest.

Log data is written to the log file for as long as that instance is active, or until midnight. When you restart the server, log data is written to an archive log.

From the Admin Portal, you can set parameters that define how events are logged.

  1. Select Configuration from the leftmost navigation pane.

  2. Expand the Logging area.

  3. Set log-severity to select the level of detail stored in the log.

    The log level provides levels of information for troubleshooting:

    • error — Notification of problems or unexpected results

    • warning — Events that could lead to problems if unaddressed

    • information — High-level information about major server events

    • trace — Detailed information about the internal state of the server

    Each level also logs events of higher severity level. For example, setting log-severity to warning also logs error. Before you call MathWorks® technical support, set log-severity to trace.

  4. Set log-archive-max-size to the maximum size of archived log information.

    When the combined size of the archive reaches this limit, archived logs are purged until the combined size of the archive is less than the specified size. The oldest archived logs are deleted first.

  5. Set log-rotation-size to the maximum size of the active log.

    When the active log reaches this limit, it is archived.

  6. Click Save.

  7. Restart the server instance. See Restart Server Instance.

See Also

Properties

Related Procedures