mitydigital / statamic-logger

Detailed, customisable and human-friendly audit logging for Statamic
MIT License
2 stars 1 forks source link

Multi-line strings written to logs cause error in parsing #2

Closed tobimori closed 7 months ago

tobimori commented 7 months ago

CleanShot 2023-12-04 at 23 34 27@2x I'm logging an error message here with $e->getMessage() which contains newlines and those are written to the log as well.

CleanShot 2023-12-04 at 23 35 14@2x However, when loading the Logger view in the panel, it seems to fail loading.

martyf commented 7 months ago

Please update to 1.0.3 which resolves this issue.

Your log entry will be preserved on a single line, and it is your responsibility as the developer to ensure line breaks are preserved at the template level as required.