log debug - part-cw/lambdanative GitHub Wiki
(log-debug s v . x)
log-debug generate a debug entry in to the current logfile. It only generates a log entry if the verbosity level is greater than the level set by (log-verbose n)
, which defaults to zero.
Note: The logger only writes logfiles if the folder log
exists.
It may need to be created using (if (not (file-exists? log:path)) (create-directory log:path))
Parameter | Description |
---|---|
s | String to log |
v | Verbosity level |
x | Optional: Secondary information (e.g. value or values needed for debugging) |
Example
Example 1: Keep a path for logging debugging purposes
(log-debug "Linux USB path: " 1 path)