mod harbour FWLOG

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

mod harbour FWLOG

Post by Otto »

Dear Antonio,
how can I implement FWLOG into my mod harbour programs.
Is the sourcecode of FWLOG function public?
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod harbour FWLOG

Post by Antonio Linares »

Dear Otto,

From your PRG you call ShowConsole(), this will open a second Apache console window.

From that moment on, you can simply use QOut( ... ) and it will appear on the Apache console :-)

that simple
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod harbour FWLOG

Post by Otto »

Dear Antonio,
I never opened an Apache console window.
Does this only work if I work with localhost or also from the internet?


Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod harbour FWLOG

Post by Otto »

Dear Antonio,
in the meantime I added following function to my code.
Inside GENESIS index.prg I inserted a lot of logging calls.
logging( "nach AddLog" )

Now the hard work begins understanding what the code does:

678 GETCOOKIES
678 GETCOOKIES
678 GETCOOKIES
82 browse
93 routes
98 ->GET
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
...

Is there an other way to see what the program does.
Thank you in advance
Otto


//----------------------------------------------------------------------------//

function logging( cText )
local cLog
cLog := memoread("c:\xampp\htdocs\samples\genesis\prg.log")
cLog += ALLTRIM( str(procline(1)) ) + " " + cText+ CRLF
MEMOWRIT("c:\xampp\htdocs\samples\genesis\prg.log" , cLog, .f. )
return nil
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod harbour FWLOG

Post by Antonio Linares »

Dear Otto,

You can use the debugger and specifically the one provided by Antonino Perricone for vscode

I will make a video explaining how to use it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod harbour FWLOG

Post by Otto »

Dear Antonio,
thank you so much.
This will be of great help.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod harbour FWLOG

Post by Otto »

Dear Antonio,
I have looked the video. Thank you so much.
Would you please post the download links for IDE and Debugger.
Thank you in advance
Otto
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod harbour FWLOG

Post by Antonio Linares »

Dear Otto,

vscode:
https://code.visualstudio.com/

From vscode, click on extensions and look for "Harbour" and select the one from Antonino Perricone

many thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply