Skip to content

[logging] Review Logging #3295

Open
Open

Description

@chernser

Description

While some of tests we have found that there are places where debug is not required and causes a lot of logs.

For example

What should be done:

  • review all debug logs
  • remove debug logs on hot path (while data reading, while repeating operations)
  • check debug do not have SQL, credentials, sensitive information, user data, etc.
  • review all other logs in the same way
  • info log should be less frequent and happen only 1 - 2 times. info logs should indicate really valuable information not just "client initialized". No configuration dumps. Only very specific cases (because when client initialized for each request it causes log flood)
  • error for exceptions and really errors
  • trace log should not be used except for a few cases
  • warn is to indicate abnormal state. should not happen on hot path but fine for configuration.
  • document logging with examples how to disable/enable different loggers - so user just copy to application configuration.

Metadata

Metadata

Assignees

Labels

area:generalclient-api-v2enhancementjdbc-v2planned_work

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions