Libraries
Log file Source Code
 previous   up   next 

Types
logFile
Interface type for log files.

logFile

const type: logFile

Interface type for log files. When string expressions are written to a logFile the evaluation of the string takes only place if the logFile is not STD_NULL. The logFile interface is implemented with null_file, external_file, utf8File, utf16File, socket, echoFile, lineFile, dirFile and many other types.


Function Summary
void
write (inout logFile: log, ref func string: stri)
Write an evaluated string expression to a logFile.
void
writeln (inout logFile: log, ref func string: stri)
Write an evaluated string expression followed by end-of-line to a logFile.

Function Detail

write

const proc: write (inout logFile: log, ref func string: stri)

Write an evaluated string expression to a logFile. The evaluation of the string takes only place if the logFile is not STD_NULL.


writeln

const proc: writeln (inout logFile: log, ref func string: stri)

Write an evaluated string expression followed by end-of-line to a logFile. The evaluation of the string takes only place if the logFile is not STD_NULL. The implementation function decides how writing end-of-line is done. It can be done by writing '\n', but other solutions are also possible.



 previous   up   next