![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hi How to redirect the output of exec | nathgopi214 | Shell Programming and Scripting | 2 | 03-23-2008 08:10 AM |
| Redirect output to a file | jimmyc | UNIX for Dummies Questions & Answers | 11 | 01-31-2007 11:34 AM |
| Redirect Output In Variable | ZINGARO | UNIX for Dummies Questions & Answers | 1 | 08-02-2006 06:56 AM |
| redirect output of FTP | kcaluwae | Shell Programming and Scripting | 4 | 06-23-2005 08:45 AM |
| redirect output to file? | slackware | Shell Programming and Scripting | 1 | 09-12-2003 02:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Redirect output
Hi all, I have a script which call a java program, the logging (to log file) in the program is done using log4j. However, as a safety measure, i still choose to direct standard error to another log file as follow
/usr/bin/java -classpath ${classpath} -Xmx128m TestingProgram 2>> ${LOG_PATH}/${LOG_FILE} in this log file, i can still see those log messages that i log using log4j (logger.info("HELLO")), why is that? I thought "2>> " would only redirect standard error, isn't it? THANKS! |
|
||||
|
Should be. However, are you sure you have checked the log4j configuration that the logger at the corresponding level is not attached to multiple appenders, which include the ConsoleAppender in addition to the other destinations configured? If so, your message will be logged to multiple destinations including stderr.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|