User Tools

Site Tools


configuringtranssecslog4jlogging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
configuringtranssecslog4jlogging [2025/11/13 01:09] – wikiadminconfiguringtranssecslog4jlogging [2025/11/13 01:20] (current) – wikiadmin
Line 3: Line 3:
 TransSECS can be set to log at different levels for the SECS/GEM messages. By default the logger is a file called "SECSMessages.log" which rolls over after a size limit is exceeded. TransSECS can be set to log at different levels for the SECS/GEM messages. By default the logger is a file called "SECSMessages.log" which rolls over after a size limit is exceeded.
  
-There are three levels of SECS/GEM message logging: INFO, WARN, and DEBUG. In the log4j.xml file for TransSECS you will see a logger called "com.ergotech.+There are three levels of SECS/GEM message logging: INFO, WARN, and DEBUG. In the log4j.xml file for TransSECS you will see a logger called "com.ergotech.transsecs.secs.Log4JLogger". This is the logger which logs the SECS/GEM messages. If you set the logger level from the default "WARN" to "INFO" you will get more information in the log. The "DEBUG" level logging is set when you want to see the SECS/GEM messages as well as SECS events, including connection events, in the log. 
 + 
 +Here is a summary of these logging levels: 
 + 
 +**WARN** (or warn): This logs just the incoming and outgoing SECS/GEM messages and is the default logging level 
 + 
 +**INFO** (or info): This logs the messages as well as the bytes in the messages 
 + 
 +**DEBUG** (or debug): This logs the messages, bytes, and events. This is the highest level of logging and is usually needed to understand why the tool and host are having connection issues. 
 + 
 +To change from the default WARN level to DEBUG, change the line in the log4j.xml file which looks like 
 + 
 +<code xml> 
 + 
 +    <logger name="com.ergotech.transsecs.secs.Log4JLogger" additivity="false"> 
 +      <level value="WARN"/>  
 +   <appender-ref ref="SECSLogFile" /> 
 +     </logger> 
 + 
 +</code> 
 + 
 +to 
 + 
 +<code xml> 
 + 
 +    <logger name="com.ergotech.transsecs.secs.Log4JLogger" additivity="false"> 
 +      <level value="DEBUG"/>  
 +   <appender-ref ref="SECSLogFile" /> 
 +     </logger> 
 + 
 +</code> 
 + 
 +Below is a typical log4j.xml file with defaults. The "appenders" are what the logger (java classes) logs to (could be files, console, etc.). 
  
 <code xml> <code xml>
Line 54: Line 86:
 DEBUG provides events, bytes and messages DEBUG provides events, bytes and messages
 --> -->
-  <logger name="com.ergotech.transsecs.secs.Log4JLogger" additivity="false">+    <logger name="com.ergotech.transsecs.secs.Log4JLogger" additivity="false">
       <level value="WARN"/>        <level value="WARN"/> 
    <appender-ref ref="SECSLogFile" />    <appender-ref ref="SECSLogFile" />
configuringtranssecslog4jlogging.1763014181.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki