On 5/10/2011 10:07 PM, Filipe Sousa wrote:
I have been using this template
private static final ${loggerType:newType(org.slf4j.Logger)}
${loggerName:newName(org.slf4j.Logger)} =
${loggerFactoryType:newType(org.slf4j.LoggerFactory)}.getLogger(${enclosing_type}.class);
and this
if (${loggerName:newName(org.slf4j.Logger)}.isInfoEnabled())
${loggerName}.info("${cursor}");
Honestly why would you still use that pattern when you have
parameterized logging?
http://www.slf4j.org/faq.html#logging_performance
--
You received this message because you are subscribed to the Google
Groups "google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.