File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Consider Paul's rocket mass heater.
 
subject: Redirecting log messages
 
Similar Threads
log4j log files
EJB3.0 CallBack methods - simple doubt
log4j application logs are rooting to Systemout with prefix StandaloneLogger
Why does Log4J logs more Struts msgs, after changing from WAS 6.0 to 6.1?
log4j prints out undesired Struts messages