Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging for model1architecture  RSS feed

 
Tina Desai
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
 
Carl Trusiak
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!