log error - part-cw/lambdanative GitHub Wiki

(log-error s . x)

log-error logs message with ERROR prefix.

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
x Optional: Additional information to be logged (e.g. values needed for debugging)

Example

Example 1: Example from rawoutput plugin that logs message if file opening fails.

(if (not fh) (log-error "rawoutput:start failed to open file for writing"))