[Codenarc-developer] logger created for different class rule
Brought to you by:
chrismair
From: Hamlet D. <ham...@ca...> - 2011-01-12 07:40:29
|
Hi Chris, Before closing the Logger rule we should support SLF4J and Logback. The API to create a logger with those are: LoggerFactory.getLogger(Class) -- Hamlet D'Arcy ham...@ca... ----- Original Message ----- > Feature Requests item #3114736, was opened at 2010-11-21 14:13 > Message generated for change (Comment added) made by chrismair > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=1126575&aid=3114736&group_id=250145 > > Please note that this message will contain a full copy of the comment > thread, > including the initial issue submission, for this request, > not just the latest update. > Category: None > Group: None > >Status: Closed > Priority: 5 > Private: No > Submitted By: Hamlet D'Arcy (hamletdrc) > Assigned to: Chris Mair (chrismair) > Summary: create rule: logger created for different class > > Initial Comment: > When you copy and paste a logger instantiation, often you forget to > change the Class literal that is passed as a parameter. > In this case, detect when the class literal does not match the current > class and flag as an error. > > ---------------------------------------------------------------------- > > >Comment By: Chris Mair (chrismair) > Date: 2011-01-11 19:33 > > Message: > Created LoggerForDifferentClassRule. Available in version 0.12. > > ---------------------------------------------------------------------- > > Comment By: Chris Mair (chrismair) > Date: 2011-01-09 20:11 > > Message: > I am starting to work on this one. I'm giving it a bit higher priority > since it was (also) requested by another user (see Feature #3117658). > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=1126575&aid=3114736&group_id=250145 |