Logs

Logging levels

LevelNumeric valueValue
TRACE8Very detailed debugging information.
DEBUG7Debugging information for developers.
INFO6Debugging information for collecting statistics.
NOTICE5An event essential for the system or the user has occurred.
WARN4This is a warning, it should be responded to and fixed unless it’s temporary.
ERROR3A non-critical error.
CRIT2A critical state.
ALERT1System degradation is possible, system components may fail.
EMERG0System outage (for example, cluster failure) is possible.

The logging level for different YDB components can be configured individually. For each component, either an explicitly set value or a default logging level value can be applied. The default logging level value can also be changed.

Changing the logging level

To change the logging level:

  1. Follow the link in the format

    1. http://<endpoint>:8765/cms

    Logs - 图1

    The Cluster Management System page opens.

  2. On the Configs tab, click on the LogConfigItems line. The Create new item button will show up along with a list of already created configuration elements.

  3. Click Create new item to create a new configuration item (or click the pencil button to edit a previously created item).

  4. To change the default logging level, select the desired logging level from the Level drop-down list under Default log settings.

  5. To change the logging level for individual components, use the table under Component log settings. In the line with the name of the component whose logging level you want to change, in the Component column, select the desired logging level from the drop-down list in the Log level column.

  6. To save changes, click Submit