Project

General

Profile

Actions

Task #537

closed

Don't write name of the class during logging

Added by Filip Měšťánek almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Radek Tomiška
Category:
Logging
Target version:
Start date:
06/26/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

As an example taken from AbstractScriptEvaluator:

LOG.error("[ScriptEvaluator] SecurityException ...");

The "ScriptEvaluator" is a redundant information which is already captured when creating the logger. This way, we lose flexibility when renaming a class or when configuring the logger.

Actions #1

Updated by Radek Tomiška almost 7 years ago

  • Status changed from New to Closed
  • Target version set to Citrine (7.3.0)
  • % Done changed from 0 to 100

I've removed redundant class information from logs and propagated info about this bad practice to the team to prevent it.
+ doc: https://wiki.czechidm.com/current/dev/conventions/logging

Actions

Also available in: Atom PDF