SLF4J Helper - plugin detail

Hints for the Simple Logging Facade for Java (SLF4J) logging library

n/a
Plugin owner: dtrebbien
Website:
Added: 2017-07-21
License: Commercial
Category: Editing
Downloaded: 137 times
Rating:
 4.49, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.06 MB   Last Update: 2017-10-15

What's new in this version

If you find a bug or have any feedback, please send me an email: dtrebbien@gmail.com

Version 1.3 (October 15, 2017):

  • Fixed a bug in an automatic fix for the "Unnecessary toString() calls" hint which would introduce a compilation error in certain cases involving Object-subtype arrays (e.g. String[]).
  • Allow the "Simpler overload available" hint to be suppressed via @SuppressWarnings("Slf4jSimplerOverloadAvailable").
  • Fixed a bug in the "Convert to parameterized logging" automatic fix for the "String concatenation in log message" hint which would introduce a compilation error in certain cases involving exactly three formatting arguments, when using SLF4J 1.6.0 through 1.6.6.
  • Modified the "Inconsistent argument count", "Message string contains formatting anchors", "Simpler overload available", "String concatenation in log message", and "Unnecessary toString() calls" hints to work around a regression introduced in SLF4J 1.7.15. See [slf4j-user] Inconsistent behavior introduced in SLF4J version 1.7.15.

This version is set to expire on March 1, 2018 at 12:01 a.m. UTC.

Version 1.2.3 (September 25, 2017):

  • Improved the "Logger call not fully analyzed" hint by including a reason why a logger call was not fully analyzed.
  • Improved the code that analyzes expressions for nullity.

This version is set to expire on March 1, 2018 at 12:01 a.m. UTC.

Version 1.2.2 (August 19, 2017):

  • Fixed a bug that resulted in an erroneous error shown on certain logger calls involving Object-subtype arrays (e.g. String[]).
  • Improved support for SLF4J 1.6.0 through 1.6.6.
  • Added a hint that identifies certain logger calls not fully analyzed by the plugin.

    If you are interested in using this hint, it is recommended to change the "Show As:" level from the default "Warning on Current Line" to "Warning" or "Error"; open NetBeans' Preferences dialog. Under "Editor" select "Hints". From the tree of available editor hints, expand the "SLF4J" node. Select "Logger call not fully analyzed". Change "Show As:" to "Warning" or "Error". Click "OK" on the Preferences dialog.

  • Added support for SLF4J versions before 1.6.0.

This version is set to expire on October 19, 2017, at 12:01 a.m. UTC.

Version 1.2.1 (July 22, 2017):

Fixed an infinite loop that could occur while analyzing certain Object array-typed expressions.

This version is set to expire on October 19, 2017, at 12:01 a.m. UTC.

Version 1.2 (July 21, 2017):

First public release.

This version is set to expire on October 19, 2017, at 12:01 a.m. UTC.

Verifications for NetBeans versions

8.2 verification PENDING See verification details


Introduction

SLF4J Helper is a plugin for NetBeans IDE that helps you to identify and correct usage errors and inefficiencies in Java code using the Simple Logging Facade for Java (SLF4J) logging library. It's like having an ever-vigilant code reviewer who points out inefficiencies and cases where important information might not be logged as intended!

Seven different categories of usage errors and inefficiencies are detected by the plugin:

  • Dead logger call
  • Inconsistent numbers of arguments: [1] [2] [3] [4] [5] [6] [7]
  • Mismatched checks for logging at certain levels being enabled: [1]
  • String concatenation in a logger call: [1] [2] [3]
  • Log message strings containing SLF4J formatting anchors: [1] [2]
  • Availability of simpler logger overloads: [1]
  • Unnecessary calls to toString(): [1] [2]

For several of the hints, you can have the plugin automatically fix the problems it identifies.

[ You have to be logged in to be able to comment. ]

User Comments

There are no comments yet.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo