This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Websphere and the fly likes console output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "console output" Watch "console output" New topic
Author

console output

arjun rampal
Ranch Hand

Joined: Jul 08, 2005
Posts: 125
Hi
How to send colsole output for websphere to file for java application
regards
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

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

Joined: Jul 08, 2005
Posts: 125
Whatever I am getting through system .out it should go to a log file and all exceptions catched to that file only
regards
Manpreet Kaur Chandna
Greenhorn

Joined: Aug 11, 2009
Posts: 3
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.






Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
 
GeeCON Prague 2014
 
subject: console output