Skip to content

Changes

Summary

  1. config/sys.config: print prefix before msg, if present (details)
  2. Makefile: allow overriding the config file (details)
  3. rebar.{config,lock}: add pfcplib to deps[] (details)
Commit b9a1916b9fda06c28e70d5595e75f78c15572c6a by Vadim Yanitskiy
config/sys.config: print prefix before msg, if present

It's sometimes desirable to add some context to logging messages,
like the FSM name and identifier, for instance.  With this patch,
this can be easily achieved by passing an arbitrary prefix string
to a logging function/macro:

  %% EXAMPLE: adding metadata to a specific log macro
  ?LOG_INFO("The planet is fine...", #{prefix = "EARTH"}).

or by setting it for all logging of a process:

  %% EXAMPLE: adding context for the whole process
  logger:set_process_metadata(#{prefix => "E-RAB FSM"}).

Change-Id: Ib88801b8d38976b98a02ed06e1638e0e9056bafb
The file was modified config/sys.config
Commit 59d09be6fffff4a40e729b0d76416ebc4b221208 by Vadim Yanitskiy
Makefile: allow overriding the config file

Change-Id: If077e9c0e06d7b081b5254bcded77ee65bcd8e5d
The file was modified Makefile
Commit 83e54d064f4b0f8102ca8f55af29027196694cc8 by Vadim Yanitskiy
rebar.{config,lock}: add pfcplib to deps[]

Change-Id: I4cf3b3b09b19ebabbaad082c616c31ffc1327fd7
The file was modified rebar.config
The file was modified rebar.lock