Macro Language Reference > Macros > Debug > logdefault
  
logdefault
Description
Closes a log and resets its destination to the default value.
 
Example 39. Log messages and display log content to the windows system
This example, using inline PIs, will write the words `hello' and 'world" to the log number 7 (LOG7), then display the content of LOG7 to a windows system pop up box:
The quick <?logwrite LOG7 hello> brown fox <?logwrite LOG7
world> jumps over a <?logopen LOG7 SYSTEM> lazy dog.
Putting an <?logclose> at the end of the line would close the log, thus preventing any more writing to it.
Syntax
logdefault log number:n
log number
Out of the ten available logs, only five have default paths that can be reset:
LOG0
Log number 0 (Alias of BFOUT (0)).
LOG1
Log number 1 (Alias of BFERR (1)).
LOG2
Log number 2 (Alias of BFDBG (2)).
LOG3
Log number 3 (Alias of BFODS (3)).
LOG4
Log number 4 (Alias of BFLOG (4)).
Sample macro
logdefault [log]: close the log and automatically reopen it to its default location.
Additional Information
See logopen for further, detailed information about log macros and PIs.
Related Links