configuringtranssecslog4jlogging
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| configuringtranssecslog4jlogging [2025/11/13 01:09] – wikiadmin | configuringtranssecslog4jlogging [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 " | 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 " | + | 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> | <code xml> | ||
| Line 54: | Line 86: | ||
| DEBUG provides events, bytes and messages | DEBUG provides events, bytes and messages | ||
| --> | --> | ||
| - | <logger name=" | + | |
| <level value=" | <level value=" | ||
| < | < | ||
configuringtranssecslog4jlogging.1763014181.txt.gz · Last modified: by wikiadmin
