Chapter 3. From Prototype to Production

If you’ve got this far, then you already have a working application with a working entity model as well as a powerful, tried and true web framework. You’ve got everything you need to take your application well past the prototype stages and develop it into a viable, production worthy application. The devil, as they say, is in the details. But fear not, Spring Roo can make short work of these tedious, but important, tasks.

In this chapter, we’ll look at testing, securing and logging.

Logging

Logging is an integral part of your application. It provides the normative connection between your application and the rest of the world, during debugging, in testing, and in production. Logging should be integrated as frequently as possible. Spring Roo comes with the Log4j dependency already enabled. With one command you can install a Log4j configuration file, log4j.properties.

logging setup --level INFO

would for sample install a configuration file setup to handle logging at the INFO debug level.

Get Getting Started with Roo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.