Hi Viktor,

Il 10/04/2009 18.12, Viktor Szakáts ha scritto:
     > hb_logSetFilename() (default hb_log.txt ?)
     > hb_logEnable()
     > hb_logEvent()
     > hb_logForceClose()
     >
     > This would add new lines to a text file on disk.
     >

    This is nice alternative but I do not need a text file.
    I rout output to windows debug stream which is picked by
    dbgview.exe, a tiny debugger, and it solves my demands.
    Maybe we can rout output to debug stream in any way
    I donot know.


There is no way to make that portable, so if this is the need, I guess it won't make it to core.

I wonder though why such tool as dbgview is needed to gather such simple text/line output, I can solve the same thing with a simple file view in Far Manager. Can save it, search in it, whatever. In fact this is what I use when inspecting build output as they go. I see no reason to use any special, plat.spec tool or API for this simple task.


I wonder if you did any test with hb_ToOutDebug().
It is portable, I use it in Windows and in Linux.
It is useful to see live output on program running without have to press F3 on a file (I always use Total Commander that it is similar to Far Manager) and in Windows dbgview also permits to search inside, save logging to a file and also filters events and more. Similar operation of hb_ToOutDebug() you can do also with hb_ToLogFile() that redirects output to a file.
Probably, or surely, it can be write better, but it does its job.
Actually it is not portable, as you wrote, because it is in xhb and not in core or in a default library.

Best regards,
Francesco

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to