aspose file tools
The moose likes Other Open Source Projects and the fly likes How write to different logs ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "How write to different logs ?" Watch "How write to different logs ?" New topic
Author

How write to different logs ?

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 165
I am working with five log files in my project. How can I control to wish file the logger will write to?

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 13842

Create one appender for each of the five log files. Configure your loggers to be connected to whichever appender is appropriate for them. Note that "the logger" doesn't work here. You need more than one logger; at least five but possibly more depending on your design. Then in your code, write to the appropriate logger depending on your design.
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 165
Hi,

How can I configure my loggers ?
[ November 23, 2005: Message edited by: chen yanush ]
 
 
subject: How write to different logs ?
 
Threads others viewed
creating a web application in eclipse
Bad current....
IllegalStateException
Localization
Start, Stop EJBs from Client