log system - part-cw/lambdanative GitHub Wiki
(log-system s . x)
log-system logs message with SYSTEM 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: The way all of the our logfiles start - the logger saying hallo to ourselves.
(log-system "Application " (system-appname) " built " (system-builddatetime))
(log-system "Git hash " (system-buildhash))