Current debug flag should be split into both trace and debug, where trace activates log of subjects being subscribed/unsubscribed and messages being sent/received, both from NATS and from clients.
Output format
Update output format to include:
date
time
microseconds
log level ([INF], [TRC], [DEB], [ERR])
Improved request logging
Logging output should be improved to allow easier tracing.
Issue
The log output from Resgate needs tidying up.
The scope of this issue includes:
Trace/Debug level
Current debug flag should be split into both
trace
anddebug
, wheretrace
activates log of subjects being subscribed/unsubscribed and messages being sent/received, both from NATS and from clients.Output format
Update output format to include:
[INF]
,[TRC]
,[DEB]
,[ERR]
)Improved request logging
Logging output should be improved to allow easier tracing.
Example output
(PDAzi)
are the last 5 characters of the request inbox.=>>
if coming from NATS or<<-
if going to the client.