configuringtranssecslog4jlogging
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| configuringtranssecslog4jlogging [2025/11/13 01:05] – created wikiadmin | configuringtranssecslog4jlogging [2025/11/13 01:20] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======TransSECS Logging====== | ======TransSECS Logging====== | ||
| + | |||
| + | TransSECS can be set to log at different levels for the SECS/GEM messages. By default the logger is a file called " | ||
| + | |||
| + | 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 " | ||
| + | |||
| + | 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=" | ||
| + | <level value=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | to | ||
| + | |||
| + | <code xml> | ||
| + | |||
| + | <logger name=" | ||
| + | <level value=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Below is a typical log4j.xml file with defaults. The " | ||
| + | |||
| + | <code xml> | ||
| + | |||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | |||
| + | xmlns: | ||
| + | |||
| + | | ||
| + | <param name=" | ||
| + | < | ||
| + | <param name=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <layout class=" | ||
| + | <param name=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <layout class=" | ||
| + | <param name=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <param name=" | ||
| + | <layout class=" | ||
| + | <param name=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | <!-- | ||
| + | WARN provides messages | ||
| + | INFO provides bytes and messages | ||
| + | DEBUG provides events, bytes and messages | ||
| + | --> | ||
| + | <logger name=" | ||
| + | <level value=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <!-- | ||
| + | Change the level to " | ||
| + | --> | ||
| + | < | ||
| + | <level value=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | <level value=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
configuringtranssecslog4jlogging.1763013944.txt.gz · Last modified: by wikiadmin
