# Logger cannot log long json lines properly

**URL:** <https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618>\
**Category:** Asterisk Support\
**Created:** [February 18, 2021, 7:20pm UTC](https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618 "2021-02-18T19:20:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![angrygami](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/angrygami/32/7352_2.png) [@angrygami](https://community.asterisk.org/u/angrygami)\
**Post date:** [February 22, 2021, 11:47am UTC](https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618/6 "2021-02-22T11:47:59Z")

</div>

Yes, now I see why my idea won’t work. Though just cranking up buffer size to a higher value will only delay inevitable - when message is again bigger than that.

I also saw that there is probably a typo there - second line missing comma in the end:

```auto
	json = ast_json_pack("{s: s, s: s, "
		"s: {s: i, s: s} "
		"s: {s: {s: s, s: s, s: i}, "
		"s: s, s: s} }",

```

---

_[View the full topic](https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618)._
