Back

PRF017

Excessive logging

Object Pascal — Delphi & Free Pascal
Info
Performance

Many log calls in a single method add I/O overhead and clutter log output

many log calls in a single method add I/O overhead and clutter log output.

Why this severity

many log calls in a single method add I/O overhead and clutter log output.


Known false positives

diagnostic methods whose purpose is detailed tracing.

Remediation example

if LogLevel >= llDebug then
  Log('Processing order ' + IntToStr(Id));

Reconnecting… Connection lost. Reload