• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

console output

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How to send colsole output for websphere to file for java application
regards
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that the equivalent of the 'console' output for WebSphere goes into the System.out and the System.err log files.

Which exceptions/output are you trying to capture? If you are looking to implement a logging, log4J is always an option.

Let me know exactly what you are trying to output to a file, and maybe I'll be able to help you more.

Cheers!

-Cameron McKenzie
 
arjun rampal
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever I am getting through system .out it should go to a log file and all exceptions catched to that file only
regards
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When running Java standalone class in Websphere, there's a Common tab in the launch configuration.

This is what websphere help says:

When a launch configuration is executed, the standard output and standard input might display output data and read input data, respectively. By default, the Console view is used for both the standard output and standard input. The standard input may be disabled and the standard output may be changed to write or append to a local file in the Standard Input and Output pane of the Common tab. To disable the standard input, clear the Allocate Console check box; Allocate Console is necessary for input.





 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!