#format-string #events #cef #serialization #logging #key-value #traits

rust-cef

Trait to serialize/convert/map a Rust item into an ArcSight Common Event Format string. This trait enables logging libraries and frameworks that may wish to integrate with standardized monitoring tools to be able to do so. A sub-package provides macros to derive the trait implementation for any struct as well as macros to annotate members to map to various CEF headers or key-value pairs.

14 releases

0.2.6 Dec 23, 2021
0.2.5 Dec 22, 2021
0.2.1 Jul 14, 2021
0.2.0 Dec 23, 2020
0.0.5 Jul 24, 2020

#1998 in Rust patterns


Used in rust-cef-derive

Apache-2.0

13KB
217 lines

Build Status

rust-cef

A simple trait that allows any Rust item (struct, enum, etc.) to be serialized as a ArcSight Common Event Format string.

Usage

let result = example.to_cef();

Dependencies

~735KB
~13K SLoC