Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Logging for model1architecture  RSS feed

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would be the preferred suggested logging mechanism for model1 architecture?

Currently we are doing sysouts from JSPs.

What other mechanism we can use? Will log4j be a proper choice?

Regards,
Tina
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the Logging TagLIB from Jakarta which uses Log4J under the covers.
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Carl.

It is a wonderful link.

One further question based on it.

We have 3/4 JSPs in which we have all scriplets. If we have to log the messages there, will we need to instantiate another log4j instance as we will be using logging from Java code?

Such JSPs are very few so it will be good if we can use the same for logging.

We already are including the .jar and properties file for log4j. Will we have to write initializer class to use the logging methods in scriplets?

Regards,
Tina
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?

Regards,
Tina
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!