[EMAIL PROTECTED] wrote on 02/15/2008 04:34:22 AM:
> Hi All,
> 
>    I want to change STAF default logging directory i.e. (STAF/Datadir 
value)
> from STAX job. I tried to set variable STAF/Datadir using var service. 
It
> changed value of STAF/Datadir to specified logging directory. But when I
> tried to log the message it logged to STAF default directory not the
> specified location of directory. 

The STAF Data directory (reflected in variable STAF/DataDir) is set using 
the "SET DATADIR <directory>" statement in the STAF.cfg file.  The 
variable STAF/DataDir merely reflects the value that is set in the 
STAF.cfg (or the default value if none was specified in the STAF.cfg). 
Setting STAF/DataDir will have no effect on the actual data directory 
being used by STAF.  There is no way to dynamically alter this 
configuration setting.

[Snip examples]
> Is there any way to change logging STAF directory? 

If you change the STAF data directory, you will, indirectly, change the 
directory where STAF log files are located.  If you want the log files 
stored in a directory not bound by the STAF data directory, then you can 
explicitly register the STAF Log service in your STAF.cfg file and specify 
the DIRECTORY parameter.  See sections 8.8.2 and 8.8.3 of the STAF User's 
Guide for more details.

-- 
Charles Rankin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to