Hello,
Could you point me towards documentation on how to make "\n" characters into newlines?
Basically I'm hoping to pretty-print the PHP errors that are in my Apache http error log, but Shift-P isn't doing it. Is there way to add "break on \n" into pretty print with a config file or something?
Example input:
[Thu May 14 10:58:36.308816 2020] [php7:notice] [pid 1010] [client xx.xxx.xxx.x:xxxxx] PHP Fatal error: Uncaught TypeError: Argument 3 passed to someClass::setCurrentSelections() must be an instance of strin, string given, called in /usr/local/www/data/book.php on line 1687 and defined in /usr/local/www/data/book.php:1609\nStack trace:\n#0 /usr/local/www/data/book.php(1687): someClass::setCurrentSelections(1461, 'remote...', '["Proxy"...')\n#1 /usr/local/www/data/some file.php(717): utility->edit(false)\n#2 /usr/local/www/data/somefile.php(3961):
(etc., etc.)
Desired output:
[Thu May 14 10:58:36.308816 2020] [php7:notice] [pid 1010] [client xx.xxx.xxx.x:xxxxx] PHP Fatal error: Uncaught TypeError: Argument 3 passed to someClass::setCurrentSelections() must be an instance of strin, string given, called in /usr/local/www/data/book.php on line 1687 and defined in /usr/local/www/data/book.php:1609
Stack trace:i
#0 /usr/local/www/data/book.php(1687): someClass::setCurrentSelections(1461, 'remote...', '["Proxy"...')
#1 /usr/local/www/data/somefile.php(717): utility->edit(false)
#2 /usr/local/www/data/somefile.php(3961):
(etc., etc.)
Any insight is appreciated!