filelog

filelog

Postby Otto » Thu Aug 20, 2009 8:33 am

Would it be possible to have a crypt possibility to the filelog function and if yes how would the decrypt be handled?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: filelog

Postby Antonio Linares » Thu Aug 20, 2009 10:12 am

Otto,

You can use FWH functions Encrypt() and Decrypt():

http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_encrypt
http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_decrypt

i.e.:

MemoWrit( "file.log", Encrypt( MemoRead( "another.log" ) ) )

MsgInfo( Decrypt( MemoRead( "file.log" ) ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: filelog

Postby Otto » Thu Aug 20, 2009 3:24 pm

Hello Antonio,
thank you. But I would like to decrypt the text before writing to the disk but after filelog made of all the single array entries a string.
Do you think this is possible?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: filelog

Postby Antonio Linares » Thu Aug 20, 2009 3:35 pm

Otto,

Is it for error.log or for another log file ?

What function or code do you use to create the log file ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: filelog

Postby Otto » Thu Aug 20, 2009 5:25 pm

Hello Antonio,

logfile( Setup():Daten + "protokoll\log" + dtos(date()) + ".txt",;
{ "SaveStandard", ::oZiRg:code,::oZiRg:USER_TIME,::LEdit,::oZiRg:artnum, ::oZiRg:bezeichnun, ::oZiRg:Menge, ::oZiRg:preis } )


I would like to use it for program intern protocols.
The different elements could be of different values.
These protocols should only be readable for service techniques in case the is a problem.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: filelog

Postby Antonio Linares » Thu Aug 20, 2009 6:00 pm

Otto,

Have you tried with :

{ Encrypt( "SaveStandard" ), Encrypt( ::oZiRg:code ), Encrypt( ::oZiRg:USER_TIME ), Encrypt( ::LEdit ), Encrypt( ::oZiRg:artnum ), ...

each value must be of character type. If not then use Encrypt( cValToChar( ... ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests