[slf4j-user] FYI - structured logging wrapper for SLF4J

Jordan Zimmerman jordan at jordanzimmerman.com
Tue Oct 1 06:39:29 CEST 2019


Hi folks. I wrote a library that might be of interest to the SLF4J community:

https://github.com/Randgalt/maple

Type-safe, consistently named and formatted, structured logging wrapper for SLF4J that's ideally suited for your logging aggregator.

Not a new logging library - merely a strongly typed wrapper for SLF4J

E.g.

    log.info(schema -> schema.id(userId).code(CODE_USER).qty(totalQty));

Features
    • Strongly typed logging model provides consistent naming and field/value mapping
    • Automatic escaping/quoting of values
    • Very low overhead
    • Optional support for:
        • Object/model flattening
        • Required fields
        • "Do Not Log" fields
        • Testing utilities
        • Composed logging
        • Consistent snake-case naming



More information about the slf4j-user mailing list