In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

How to print a status line to a log file?

Xailer English public forum
Responder
Guest

How to print a status line to a log file?

Mensaje por Guest »

Function WriteLog( str )
SET CONSOLE OFF
SET PRINTER ON
SET PRINTER TO "BCLOG.TXT" ADDITIVE
? str
SET PRINTER OFF
SET PRINTER TO
Return Nil
, which is supposed to print status or variable assignments, depending
on the value of the bIsTrace property.
The problem is, that at the end of the program, the BCLOG.TXT file is
empty. Do I need to flush the file in some way?
There used to be some kind of a Log Write function in xHarbour, or maybe
it was Harbour. Is there an alternative to the WriteLog function above?
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

How to print a status line to a log file?

Mensaje por jlalin »

Hi,
use the Xailer native LogFile( cString1, ... cStringN )
Regards,
José Lalí­n
DC
Mensajes: 125
Registrado: Lun May 16, 2011 6:06 pm

How to print a status line to a log file?

Mensaje por DC »

That's the one I was looking for, thanks Jose.
On 10/3/2011 3:32 AM, José Lalí­n wrote:
> Hi,
>
> use the Xailer native LogFile( cString1, ... cStringN )
>
> Regards,
> José Lalí­n
>
Responder