![]() |
|
Starting Pramati Server with -redirect option redirects all messages written to System.out to text Files. System.out will be written to stdOut.log, System.err will be written to stdErr.log. Both these log files can be found in the <install_dir>/server/node/<node_name>/logs directory.
To start Pramati Server with -redirect option, pass the -redirect switch to script files: runserver.sh/runserver.bat.
Example:
~/builds/1120/Pramati/server/bin
$ ./runserver.sh -redirect & Server's System.out and System.err streams are redirected.
They will be written to [stdOut.log] and [stdErr.log] files in directory
[/home/prashant/builds/1120/Pramati/server/nodes/default/logs].
~/builds/1120/Pramati/server/nodes/default/logs
$ tail -f stdOut.log
3:48:14 PM- Server [default] [ ... ]
Type [J2EE]
User [root], Realm [system]
Mon Nov 14 15:48:14 IST 2005
3:48:14 PM- MBeanServerAgent [ ... ]
3:48:14 PM- MBeanServerAgent [STARTED]
3:48:14 PM- Extension Classloading directory: [/home/prashant/builds/1120/Pramati/server/lib/ext]
3:48:14 PM- Extension Classloader MBean registered
...
stdOut.log and stdErr.log files will grow unchecked. Pramati Server will not rotate these files. It is possible to use external programs like [logrotate|http://man.linuxquestions.org/?query=logrotate§ion=0&type=2] to archive these files when they grow beyond a size.System.out will be written to stdOut.log. That means messages outputed by Pramati Server itself will also go to this file.System.out.println. log4j gives better control of where the messages from your application should go to.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |