Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.+\d{2}:\d{2})\s(?<level>[^:]+):\s(?<body>.*)$
/
gm

Description

Lnav log format for Magento 2 Zend_Log

Submitted by Denys Babenko <denys@babenkocommerce.com> - 8 months ago (Last modified 7 months ago)