Configuring the Log Settings page by using Mid Tier Configuration Tool
The following screenshot displays Mid Tier Configuration Tool – Log Settings page:
Logging
The following table lists the log settings:
Setting | Description |
---|---|
Log Categories | List the type of information to be stored in the log file: By default, all categories except Flashboards are selected.
Important: You cannot disable all log categories. If you try to disable all log categories, the previous settings are restored. |
Filter Log by User Name | The user names of the users whose activity is logged. You can restrict the logging for one user or multiple users. To restrict logs for multiple users, specify each user name separated by a semicolon, for example, Alan;Jonnie. If you leave the field blank, logs for all users in the current session are recorded. When you enter one or more user names and save your changes, a new log file is started. For log messages displayed on the screen, the filter applies only to new entries. Any existing entries for earlier users are displayed on the screen only until the limit set in the View Logs setting is reached. |
Log Directory | The directory in which log files are stored. For example, ARSystemInstallDir/Logs. To change the log directory, enter the absolute (complete) path for the new directory. You cannot change the log file name. |
Maximum Log File Size (kb) | The maximum size (in kilobytes) a file can reach before a backup copy is automatically made. The default size is 1024 KB. The default file name is armidtier.log. The backup copy is made with the same file name and an incremental number (for example, armidtierN.log). |
Maximum Number of Log Files | The maximum number of backup files that the system will generate when the log file size exceeds the limit specified in the Maximum Log File Size. The default value is 100 backups. |
Log Level | The level of detail for logging information:
You can see the pre-load start and end timestamp when you set the log level to Info or Warning. Irrespective of the logging level, Mid Tier logs the pre-load start and end time. The default value is Severe. |
Log Viewer | The method by which you want to view log files:
The default value is File. |
Log Format | The log output is generated using the standard Java 1.8 logging API, including Simple and XML formatting:
|
Mid Tier Thread Dumps | Enables you to collect logs of all the Java activities in your environment. The Launch button displays the Get Mid-Tier JVM Thread Dumps page. You can perform the following steps on the Get Mid-Tier JVM Thread Dumps page:
|
Mid-Tier Profiler
To activate the Mid-Tier Profiler, set the value of Mid-Tier profiling to True. Mid-Tier Profiler provides the performance information about the client side (JavaScript) code on the Mid Tier. The profiler shows how much time was spent on a particular method (such as a table refresh). When the profiler is turned on, Show Profile and Clear Profile buttons appear in the Mid Tier toolbar (if enabled) when forms are viewed in the browser.
The Mid-Tier Profiling option is usually used during the development of an application because when you turn on the profiler, all users have access to the profile.
The following table describes the setting in the Mid Tier profiler:
Setting | Description |
---|---|
Show Profile | Displays all the profiled data in a new window. |
Clear Profile | Clear all the profiled data from memory. |
You can view the log files that record the activity of Mid Tier. If you have no log files generated, it might be because the Log Viewer setting is set to Console. Change this setting to Files to generate Mid Tier log files.
The following table lists the log file view settings:
Setting | Description |
---|---|
Display Last | The number of lines that you want to view from the most recent entries in the log. The default is 25. |
View Log File | Click to view the log file. |
Click View Log File on the Log Settings page to view logs.
Mid Tier Log file format
Here is a sample Mid Tier log file entry:
<MTIER><TID: 0000000093> <CATEGORY:com.remedy.log.PERFORMANCE > /* Tue Apr 09 2019 03:52:17.065 */ <LEVEL: FINE> <Class: com.remedy.arsys.stubs.FormServlet><Method: doRequest><TENANT: null> <USER: Demo> server:<arserver>||app:null||form:User||view:null||file:null||appResource:null||size:2
To restrict Mid Tier logs for multiple users
Mid Tier logging provides the functionality to restrict the logs for specific users; for example, you can view logs for the user Allen. By restricting the logging to one or more users, you can generate log files containing details of the activity performed only by the specified users.
Perform the following steps to restrict Mid Tier logs for multiple users:
- Open the Mid Tier Configuration Tool.
- Go to the Log Settings page.
In the Filter Log by User Name field, enter the names of the user for restricting the logging.
To restrict the the log for multiple users, specify the user names as semicolon (;) separated values; for example, Allen;John.
- Click Save.
The log file records the activity performed only by the specified users.