GeeCON Prague 2014*
The moose likes Websphere and the fly likes Redirecting log messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Redirecting log messages" Watch "Redirecting log messages" New topic
Author

Redirecting log messages

Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Hi,

My application uses commons logging simpleLog to print debug logs in the application server (systemOut) logs. Now I want to redirect my application's debug statements to a separate log file apart from the application server logs (systemOut, systemErr etc.).

How can I make it possible?

Thanks in advance.
Ashu
Amresh Vijay
Greenhorn

Joined: Mar 05, 2012
Posts: 1

Hi Ashu,

What I understand from your post is that you want to have all the debug statements in a separate file. WebSphere already have a provision for this in the form of trace.log.
You can also configure the parameters like name, size, location etc. of debug logs. For this you need to login to WebSphere Admin Console & go to path: Application servers > server1 > Logging and Tracing > Diagnostic Trace Service

But for starting the generation of debug log, you need to enable debugging service at server start up. For this:
(1) Login to WebSphere Admin Console.
(2) Go To Application servers > server1 > Debugging Service
(3) Select the check box Enable service at server startup

Please let me know if it helped.

Regards,
Amresh Vijay
 
GeeCON Prague 2014
 
subject: Redirecting log messages