9.2.5.  Global Logging System

The global Logging System is available for all applications, libraries and scripts.

The Logging settings [Log settings] dialog is part of the Settings dialog page, which you can open from PARTsolutions and eCATALOGsolutions modules via Extras menu → Settings [Preferences]. Here you can set the log level.

Logging settings [Log settings] Logging settings

Logging settings [Log settings]

Output of logging data:

  1. The logging data is output in the log window [Log window] of the respective module.

    You can optionally make the log window [Log window] visible via the context menu of the toolbars (default = off).

    Example PARTdataManager: Log window Log window

    Example PARTdataManager: Log window

    • Opens the Logging settings [Log settings] dialog page.

    • Opens Windows Explorer to save the log messages to a file.

    • Delete the contents of the log window.

  2. The Output of the logging data is done in the output file under C:\Users\benutzername\AppData\Local\Temp\psol_logs. [10]

    $CADEAS_USER\logs\cadenas_error.logLog file

    $CADEAS_USER\logs\cadenas_error.log

  • Global logging setting [Global logging settings]Standard log level (Applies to all categories without a special log level) [Standard log level (true for all categories without specialized loglevel)]

    To change the log level for all logger categories together, select the desired list item in the list field:

    Logs are generated that are larger or equal to the set log level.

    Valid is: TRACE < DEBUG < INFO < WARN < ERROR < FATAL

    [Important]Important

    The performance may become worse if you globally set the log level to "TRACE" for all modules or root categories "cadenas", for example.

    "TRACE" causes every procedure to create a notification. Therefore, you should only use "TRACE" for individual subcategories.

  • Logger category

    Under Logger category you can see the hierarchy of the individual categories starting from the root element "cadenas" down to individual applications, libraries and scripts.

    [Note]Note

    Only elements, which are currently loaded, are shown in the tree.

  • Specialized log level [specialized log level] and effective log level [Effective log level]

    If "OFF " is selected for Specialized log level [specialized log level], the value set under Global logging settings -> Standard log level (applies to all categories without a special log level) [Standard log level (true for all categories without specialized loglevel)] is displayed under Effective log level.

    If an individual setting is made for a specific logger category [Logger category], this is displayed under Effective log level.

    To determine an individual log level, click on the displayed value under Specialized log level [specialized log level], open the selection list and click on the desired value.

    Specialized settings

    Specialized settings

  • Apply

    Saves changes made.

  • OK

    Saves changes made and closes window.

  • Cancel

    Closes dialog without saving changes.

If the delivery status is changed, the following file is created under $CADENAS_USER the file log4cxx.properties. Changes to this file should only be made in consultation with CADENAS Consultants.[11]




[10] An excessive growth of log messages is prevented by an automatic deletion mechanism.

[11] The logging system is based on Apache log4cxx. Detailed information on configuration options for log4cxx.properties can be found at http://logging.apache.org/log4cxx/index.html.