New in version 0.4.0.

The Serializer subsystem is a pluggable interface used just before a structured napalm-logs document is sent to the Publisher interface.

The default Serializer used is MessagePack.

From the command line, the Serializer can be selected using the --serializer (or -s) option, e.g.:

$ napalm-logs -s yaml
$ napalm-logs --serializer pprint

From the configuration file, the Serializer can be specified using the serializer option.

Configuration file example:

serializer: json

Multiple Publishers

It is possible to select a separate serializer per Publisher, specifying the name using the serializer: msgpack configuration option.

Available serializers