The code for Library Mode https://github.com/fluent/fluent-bit/blob/master/plugins/out_lib/out_lib.c. Update to Summary.md needed too for new file library.md.