telefonicaid / fiware-orion

Context Broker and CEF building block for context data management, providing NGSI interfaces.
https://fiware-orion.rtfd.io/
GNU Affero General Public License v3.0
212 stars 265 forks source link

traceLevels in text instead of numbers (AKA "debug logging for humans") #1612

Open kzangeli opened 8 years ago

kzangeli commented 8 years ago

The trace levels right now are based on numbers:

-t 0-14,55-79

This is not very user friendly. Also, in order to have similar trace level grouped together, sometimes trace levels change its number. All very confusing.

We should use strings for the trace levels instead:

-t mongoXXX,restYYY

As an extra, we might support wildcards:

-t mongo*,rest*

The old trace levels wont disappear, but this new way will be added (and configurable which method you want to use).

Effort: 5 man day

fgalan commented 7 years ago

Part of this is how to set in an easy way the logging for payload messages that Orion sends/receives. The CLI could be as follows:

-t flow:<communications_point>:<request|response|all>

Eg:

- t flow:ngsi:all,flow:cpr:response,flow:notif:request

Communications points: