vom-json

AuthorMatt Novenstern <fisxoj@gmail.com>
Version2
license:MIT
Travis CI status badge
Contributor Covenant
Source:https://github.com/fisxoj/vom-json
Docs:https://fisxoj.github.io/vom-json/

vom-json is a complementary library to vom, which changes the logger syntax to something like lambda-log which outputs its log messages in the JSON format. In some environments like AWS insights, this makes the log data more searchable.

You can use it two ways:

Wrap the body of your program in it using vom-json:with-json-logging:

(vom-json:with-json-logging
  (vom:error "Oh noes!"))
;; => {"_logLevel":"error","_timestamp":"2020-05-11T18:23:58.569136Z","msg":"Oh noes!","_tags":[],"_package":"common-lisp-user"}

Enable the logger globally:

(vom-json:enable-json-logging)

This project is extremely inspired by log4cl-json.

Packages