Mulog is library that defines log events as data, with a wide range of publisher for popular log aggregation services, e.g. Elastic Search, Cloudwatch, Kinesis, Prometheus, etc.)
As each event log is data, then searching through logs is far simpler to filter on specific keys (compared to when logs are strings).
mulog/log
function is used to define an event message. The first argument is a unique event name, followed by any key/value pairs that are useful to define the contents of the log message.
An example of a simple Mulog event:
mulog/log ::dev-user-ns :message "Example event message" :ns (ns-publics *ns*))
Using a custom publisher, Mulog events can automatically be sent to data inspectors such as Portal.
getLog()
: one uses aClass
, the other takes aString
. You could simply use theString
one. – Arawak