This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Redirecting log messages

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
IBM DB2 VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!