Monday, May 23, 2011

Learn about
- SLF4J (and Logback)
- JUnit
------------------------------------------
SLF4J

http://www.catosplace.net/blogs/personal/?p=442

http://blog.springsource.com/2009/12/04/logging-dependencies-in-spring/

http://blog.espenberntsen.net/
In addition to the extra flexibility, the API also contains a nice feature with support for arguments.
logger.debug("The date is: {}", date);
The old way with Log4J:
if (logger.isDebugEnabled()) {
logger.debug("The date is: " + date);
}
Both examples prints:
DEBUG [demo.Slf4jDemo] - <The date is: Sun Jun 06 11:34:11 CEST 2010>
The difference is that SLF4J doesn’t merge the dynamic and static data into a new string in the debug method, but sends the dynamic part(s) as argument(s). If the logger is configured to only log messages with info level or higher, the debug message above gets discarded without any string processing and without the need for an extra if sentence for performance reasons.

------------------------------------------

JUnit

http://www.jaredrichardson.net/articles/junit-tutorial.html
http://efreedom.com/Question/1-4183021/Looking-Tutorial-Using-JUnit-Intellij-IDEA-9x

http://tutorials.jenkov.com/java-unit-testing/running-tests-with-idea.html

------------------------------------------

http://code.google.com/intl/id-ID/javadevtools/wbpro/layoutmanagers/swing/miglayout.html

------------------------------------------

Spring Recipes ~ A Problem-Solution Approach ( 2010 - 1430224991 )
until page 130

------------------------------------------

1003
sammy yusuf - asma Allah

No comments:

Post a Comment