Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

different log4J log files for same application

Thread view: 
crash.test.dummy - 23 Feb 2006 21:44 GMT
hi,
 i have an application that listens on a specific port to do its task.
This application can run on multiple instances by specifying different
ports in the argument.

MyApp-1211.bat contains
   java MyApp 1211

MyApp-1311.bat contains
  java MyApp 1311

MyApp-1411.bat contains
  java MyApp 1411

this application logs to a file. the problem is all 3 instances log
into a single file, myApp.log. is there a way to tell log4j to use
different log files, like:

myApp-port1211.log
myApp-port1311.log
myApp-port1411.log

thanks.
Raymond DeCampo - 24 Feb 2006 13:26 GMT
> hi,
>   i have an application that listens on a specific port to do its task.
[quoted text clipped - 17 lines]
> myApp-port1311.log
> myApp-port1411.log

The short answer is yes.  The long answer is that I can't tell you
exactly how to do it, but perhaps the folks at the log4j-users mailing
list (log4j-users@logging.apache.org) can.  See http://www.apache.org/ 
for subscription info.

HTH,
Ray

Signature

This signature intentionally left blank.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.