[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
[ https://issues.asterisk.org/jira/browse/ASTERISK-29308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
angrygami updated ASTERISK-29308:
---------------------------------
Description:
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.
See discussion: https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618
was:
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
> 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.
> 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