13.07.2015 Views

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Accelerate</strong> <strong>Your</strong> <strong>JBoss</strong> <strong>Enterprise</strong> <strong>Middleware</strong> –LoggingLoggingLogging●Important Notes on logging:● There is an entirely new logging implementation in EAP 6.● This logging implementation is very high performance, supportsinternationalization/localization (i18n/L10n), and is available as a public API forapplications to use.● It doesn't suffer from the problems of some of the other loggingimplementations where they don't check the log level until they are ready to tryand write to the log file.● <strong>JBoss</strong> logging has a fail fast design for the log level.● This makes most of the need to wrap statements with debugEnabled() calls,or traceEnabled() calls go away.● Having said that, there are still cases where you may be doing somethingexpensive in your logging code, like Object.toString(), and the statementsare still there to wrap those log statements so they don't get expensive.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!