Skip to main content

Veritran Docs

[en] Logs

[en] Every action executed on the platform is saved on log files. These logs can then be consulted to see detailed information about transactions, services and every object that exists within VT-NET.

[en] To access the logs folder, go to /veritran/vt-net/log/ . Processes on a node save updates on the same file. You can identify it with the name of the environment, node and the .log extension, i.e VTRP_NDA1.log

Nota

[en] This is the default path to consult log files. Since paths can be modified during the platform's installation, it is advised to double check you are accessing the logs folder with the correct path.

[en] To consult a log, type vi and the name of the log. To improve its readability, use the set nowrap function. See an example below.

log_example.png

[en] There is a set of commands you can execute to manage logs and perform different actions within them, such as increasing or decreasing the logs levels. See below to learn more.

[en] Changing Log Levels

[en] Changing log levels help you limit or expand the information you will find in log files regarding the platform's processes.

[en] The logger command increases or decreases the log level for a certain process or for all processes at once. Log level is expressed in a scale from 1 to 50, 1 being the level that shows the least detailed information, and 50 the level with the most detailed information. Read Log Realms to learn how to increase and decrease log levels for specific objects within VT-NET.

[en] Use the following command to increase or decrease the log level for a process, or all processes at once, respectively:

[en] Replace the n parameter with the corresponding level number. See the table below to learn about the type of information that each level displays.

[en] Level

[en] Constant

[en] Description

1

[en] VTLOG_SHOW

[en] Messages that should always be displayed, such as a component's version during its launch

2

[en] VTLOG_ERROR

[en] Error messages

3

[en] VTLOG_STATUS

[en] Messages about objects' change of status within the platform

4

[en] VTLOG_WARNING

[en] Warning messages

5

[en] VTLOG_INFO

[en] Messages that show relevant information after an event

6

[en] VTLOG_BUSINESS

[en] Messages that identify a business transaction

7

[en] VTLOG_MESSAGES

[en] Messages with processed transactions' request and response code

8

[en] VTLOG_DEBUG

[en] Platform's debug information, such as parameters values, execution of methods or functions, and more.

9

[en] VTLOG_QUERY

[en] Platform's debug information and executed queries

10

[en] VTLOG_DEBUG_DETAIL

[en] Platform's debug information, executed queries, input and output queries' values, array values, and more.

20

[en] VTLOG_DEBUG_EXTRADETAIL

[en] Platform's debug information such as lines and stations messages

30

[en] VTLOG_DEBUG_EXTRAEXTRADETAIL

[en] Thorough debug information only used in development

50

[en] VTLOG_DEBUG_PEDANTIC

[en] Thorough debug information only used in development

[en] Note that, when setting a log level, lower level information will also be displayed in your log file. For example, setting your log level to 6 will also include levels from 1 to 5 within your file.

Importante

[en] After operating with the logger command, it is advisable to set the log level back to 6.

[en] Log Files Management Commands

Nota

[en] For more health and frequently used commands, read Commands.