[OpenSIPS-Devel] [OpenSIPS/opensips] b36449: Enhance the logging interface and add structured J...

Vlad Pătrașcu noreply at github.com
Mon May 15 10:21:10 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b3644964573d7083001e2fbf12d4580808b664dc
      https://github.com/OpenSIPS/opensips/commit/b3644964573d7083001e2fbf12d4580808b664dc
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M cfg.lex
    M cfg.y
    M daemonize.c
    M dprint.c
    M dprint.h
    M globals.c
    A log_interface.h
    M main.c
    M mi/mi_core.c
    M shutdown.c
    M xlog.c

  Log Message:
  -----------
  Enhance the logging interface and add structured JSON logging

Logs can now be sent to both standard error and syslog. Each logging consumer
can be enabled/disabled separately via global parameters or at runtime via the
'log_mute_state' MI function.

Additional filtering by log level, for each consumer, ca be achieved by
setting global parameters or at runtime via the 'log_level_filter' MI
function.

Logs can now also be printed in a JSON based, structured format, with two
schema options: a basic opensips schema and CEE.





More information about the Devel mailing list