View log files - Intergraph Smart Materials - Version 10.2 - Installation & Upgrade - Hexagon

Intergraph Smart Materials Installation (10.2)

Language
English
Product
Intergraph Smart Materials
Subproduct
Classic
Search by Category
Installation & Upgrade
Smart Materials/Smart Reference Data Version
10.2

The first step in troubleshooting a problem is to examine the log files to determine what problems are occurring.

Client log files

To enable logging and setting the Trace Level on client side, do the following:

  1. Right-click the application icon in the toolbar and click Open configuration file on the menu.

    WPFLogFile01

    In case of a Citrix environment, contact your administrator for the configuration details.

  2. In the configuration file, search for the following entry to set the client side Trace Level:

    <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">

    <targets>

       <target name="logfile" xsi:type="File"

          header="#longdate---------------|#level|#tid|#caller opt                   |#message"

          layout="${longdate}|${level:uppercase=true:padding=5:fixedlength=true}|${threadid:padding=5:fixedlength=true}|${logger:padding=30:fixedlength=true}|${message}|${exception:format=tostring}"

          keepFileOpen ="True"

          concurrentWrites ="True"

          autoFlush ="False"

          openFileFlushTimeout ="5"

    fileName="C:\inetpub\logs\LogFiles\SPMATWPF\DataBrokerService.log"

          deleteOldFileOnStartup="True"

          archiveAboveSize ="1000000"

          maxArchiveFiles ="5"

          archiveFileName ="C:\inetpub\logs\LogFiles\SPMATWPF\History\DataBrokerService.zip"

          archiveNumbering ="DateAndSequence"

       />

       </targets>

       <rules>

          <logger name="*" minlevel="Info" writeTo="logfile" />

       </rules>

    </nlog>            

    minlevel can be set to: Info, Trace, Debug, Warn, Error.

  3. In the configuration file, search for "MessageLoggingBehavior" and set the value of enabled to "true", to activate message tracing (then the client writes all requests and responses to the file system).

    WPFLogFile02

    In case https is used, the name is "viaBehaviorDataBrokerNormalHttps" instead of "viaBehaviorDataBrokerNormal". 

  4. Right-click the application icon in the toolbar and click Open current location on the menu.

    WPFLogFile03

  5. The folder of the current application instance in "IntergraphAppStore" opens. In this folder, you can zip and send the "Traces" folder, it includes the current log file and a history of log files.

    WPFLogFile04

Server log files

  1. To get the log file location on the .NET Application server, open the Web.Config file of the DataBrokerService, which can be found in directory:

    <your_install_folder>\Web\DataBrokerService

  2. Search for the following entry:

    <targets>

    <target name="logfile" xsi:type="File" header="#longdate---------------|#level|#tid|#caller opt|#message"layout="${longdate}|${level:uppercase=true:padding=5:fixedlength=true}|${threadid:padding=5:fixedlength=true}|${logger:padding=30:fixedlength=true}|${message}|${exception:format=tostring}"

    keepFileOpen ="True"

    concurrentWrites ="True"

    autoFlush ="False"

    openFileFlushTimeout ="5"

    fileName="C:\inetpub\logs\LogFiles\SPMATWPF\DataBrokerService.log"

    archiveFileName ="C:\inetpub\logs\LogFiles\SPMATWPF\History\DataBrokerService.{#}.zip"

    deleteOldFileOnStartup="True"

    maxArchiveFiles ="5"

    enableArchiveFileCompression="true"

    archiveOldFileOnStartup="true"

    archiveNumbering ="Date"

    archiveDateFormat="yyyy-MM-dd HH_mm_ss"

    />

    </targets>

    The log file locations of AppLauncher, DeplyomentService, and Smart Materials Client can be found in the corresponding configuration files in the \AppLauncher, \DeploymentService and \Client subdirectories.

  3. You can zip and send the current log file and the History folder.