[asterisk-bugs] [JIRA] (ASTERISK-29308) Logger cannot log long json lines properly

angrygami (JIRA) noreply at issues.asterisk.org
Mon Feb 22 06:52:15 CST 2021


angrygami created ASTERISK-29308:
------------------------------------

             Summary:  Logger cannot log long json lines properly 
                 Key: ASTERISK-29308
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29308
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/Logging
    Affects Versions: 18.1.1
         Environment: Alpine 3.13, Docker container
            Reporter: angrygami


When I configure logger to use json formatter like this:

{code}
messages => [json]notice,warning,error
{code}

and enable verbose logging for pjsip like this:

{code}
$ rasterisk -x 'pjsip set logger on'
{code}

After making some calls I noticed that log lines that are longer than 1024 symbols are cut off making json invalid and loosing information.
Is there any way around this?

See discussion: https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list