wood burning stoves 2.0*
The moose likes Servlets and the fly likes LogManager? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "LogManager?" Watch "LogManager?" New topic
Author

LogManager?

Daniel Prene
Ranch Hand

Joined: Jul 15, 2005
Posts: 241
I've been reading alot of tutorials lately on different patterns... people keep refering to some sort of logger and I was wondering if anyone could point me in the right direction for that... I googled it but only references to the tutorials I've been reading come up... take a look at:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceToWorker.html

Thank you for atleast spending the time to read this,
-D.P.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

Probably Log4J. Not specific to any technology like Servlets, JSP, EJB, or just J2SE, it can be used for all Java.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

In their particular case they implemented their own logger to store the logged messages so that it can then later be passed to a jsp page so you can see that there, although that is not necessary. Logging to a file can also let you see what was logged, or even just to the console.

It also states that the purpose of the logger is just for the example purposes.

It is not part of the design pattern.

Mark
dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
Filter is a thing doing logging pattern.


Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
Daniel Prene
Ranch Hand

Joined: Jul 15, 2005
Posts: 241
Alright, cool. Thank you for the help! Any further suggustions? I've never found an example of all the components working together... just sections... like the controller, or the command, or the helper... any one have some code or tutorial they'd be so kind as to point me at that would show me everything together? Dispatcher and all... If not then that's alright too... Thanks again!

-D.P.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LogManager?