TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  JavaLogging4Checked automatically with code checker

Synopsis:Avoid printStackTrace(); use a logger call instead.
Language:Java
Severity Level:2
Category:JavaLogging


Description:
Avoid printStackTrace(); use a logger call instead.
class Foo {
 void bar() {
  try {
   // do something
  } catch (Exception e) {
   e.printStackTrace();
  }
 }
}