Hi, I'm trying to log into subdirectory of root log directory using Perl script with API STAF::Log::Init() and STAF::Log::Log() with GLOBAL log file. It is creating the log file in subfolder. When I try to read the log file with QUERY request it is giving the error 48.
[:~/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test]$STAF local LOG QUERY GLOBAL LOGNAME /home/test/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test/TestLog Error submitting request, RC: 48 Additional info --------------- /home/test/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test/TestLog Log file is present in the folder. [:~/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test]$ls /home/test/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test/TestLog.log /home/test/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test/TestLog.log But when file is moved to root directory it is able to read the file. [:~/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL]$STAF local LOG QUERY GLOBAL LOGNAME TestLog Response -------- Date-Time Level Message ----------------- ------- -------------------------------- 20100111-01:51:32 Warning 1234-015132-ABCD 20100111-01:51:32 Warning 1234-015132-123 20100111-02:13:40 Warning 1234-021340-ABCD 20100111-02:13:40 Info 1234-021340-123 20100111-02:16:17 Warning 1234-021617-ABCD Note that FmtLog utility is able to read it from sub folder. [:~/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test]$FmtLog FORMAT LOGFILE /home/test/SRC/STAF/rel/linux/staf/debug/logdata/GLOBAL/test/TestLog.log newfile aaa Formatted 5 record(s) to aaa Please let me know what to do using QUERY service. Thanks Uma.
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users