[CLOSED] How do I capture SYSLOG to my local disk?
Hi all I have the following code.. it does not write the file.... following is the code.. APP FILEDEF LOGFILE DISK C:\Users\UID\Documents\WFTEMP\LOGFILE.TXT -SET &ECHO=ALL; -TYPE "THIS IS A TEST LOG" -... -... FILEDEF LOGFILE CLEAR
Do not have access to wf server, temp disk etc.. But I do have access to write to local disk..This message has been edited. Last edited by: <Kathryn Henning>,
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
April 06, 2013, 01:36 AM
FrankDutch
But webfocus does mot have access to your local disk.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
April 06, 2013, 04:00 PM
Twanette
quote:
APP FILEDEF LOGFILE DISK C:\Users\UID\Documents\WFTEMP\LOGFILE.TXT
If your request is running on the WebFOCUS server, then your FILEDEF will be trying to write the file to the C: drive of the _server_.
WebFOCUS 8.2.06 mostly Windows Server
April 09, 2013, 12:53 PM
FOCdeveloper
Thank you Frank and Twanette.. Yes I was able to write to a file after HOLDing the records to the FILEDEF name.. But what I am trying to do is to capture the messages from WF to a file for trouble shooting.. Yes I can do the View... but sometimes it gets very long and for complex reporting, would help if there a log file of all messages... in the old days used SYSPRINT to capture the messaages.. but SYSPRINT not available in WF? following is a test code SET EMGSRV=FILE APP FILEDEF SYSPRINT DISK C:\ibi\DevStudio76\srv76\wfs\user\nslog.txt -RUN ? FILEDEF ? PATH -SET &ECHO=ALL; TABLE FILE CAR PRINT 'CAR.ORIGIN.COUNTRY' 'CAR.COMP.CAR' 'CAR.CARREC.MODEL' 'CAR.BODY.BODYTYPE' IF RECORDLIMIT IS 10 ON TABLE NOTOTAL END TYPE "TEST LOG" -RUN -CLOSE SYSPRINT -RUN FILEDEF SYSPRINT TERM -RUN -EXIT
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7