Instantly share code, notes, and snippets.
-
Star
(1)
1
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save nexces/42cedb21c4f19466469b0ca19c7ee2bc to your computer and use it in GitHub Desktop.
lnav Monolog format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"monolog": { | |
"title": "Monolog log file format", | |
"description": "Monolog log file format", | |
"url": "https:\/\/github.com\/Seldaek\/monolog", | |
"regex": { | |
"default": { | |
"pattern": "\\A\\[(?<timestamp>[^\\[\\]]+)\\] (?<logger>[A-Za-z0-9-_]+)\\.(?<level>\\w+): (?<message>.+?) *(?<context>(\\[(?>[^\\[\\]]+|(?-1))*\\])|(\\{(?>[^\\{\\}]+|(?-1))*\\})) (?<extra>(?-4))\\z" | |
} | |
}, | |
"level-field": "level", | |
"level": { | |
"fatal": "EMERG|ALERT", | |
"critical": "CRIT", | |
"error": "ERROR", | |
"warning": "WARN", | |
"info": "INFO|NOTICE", | |
"debug": "DEBUG" | |
}, | |
"value": { | |
"logger": { | |
"kind": "string", | |
"identifier": true | |
}, | |
"level": { | |
"kind": "string", | |
"identifier": true | |
}, | |
"message": { | |
"kind": "string" | |
}, | |
"context": { | |
"kind": "json" | |
}, | |
"extra": { | |
"kind": "json" | |
} | |
}, | |
"sample": [ | |
{ | |
"line": "[2015-08-10 15:05:12] event.DEBUG: Notified event \"kernel.terminate\" to listener \"Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelTerminate\". [] []" | |
}, | |
{ | |
"line": "[2016-10-07 10:02:40] WIMNotifier.ERROR: Connection error! \"SQLSTATE[HY000] [2002] No route to host\" [] {\"memory_peak_usage\":\"2 MB\",\"memory_usage\":\"2 MB\"}" | |
}, | |
{ | |
"line": "[2017-04-13 15:21:47] panic.ERROR: ErrorException [Notice] Undefined variable: calculatedPromoValidTo in \/var\/www\/virtual\/maki\/application\/modules\/Orders\/models\/OrderLineFactory.php line 49. [] [{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/models\\\/OrderLineFactory.php\",\"line\":49,\"function\":\"errorHandler\",\"class\":\"ApiV1\\\\Plugin\\\\ApiErrorHandler\",\"type\":\"::\",\"args\":[8,\"Undefined variable: calculatedPromoValidTo\",\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/models\\\/OrderLineFactory.php\",49,{\"order\":{},\"number\":null,\"cname\":null,\"product\":{},\"netPrice\":999,\"quantity\":1,\"billingCycle\":\"1\",\"billingStartDay\":\"13\",\"billingStartDayIsImmutable\":false,\"billingStartDate\":{\"date\":\"2017-04-13 15:21:47.000000\",\"timezone_type\":3,\"timezone\":\"Europe\\\/Warsaw\"},\"paymentType\":\"recurrent\",\"activationType\":\"auto_on_payment\",\"billingType\":\"none\",\"invoicingType\":\"proforma\",\"separateInvoicing\":false,\"paymentAttribution\":{},\"contractEnd\":null,\"invoiceDescription\":\"%product_name% %custom_name% [nr zam.: %ol_number%]. Za okres %date_from% - %date_to%\",\"paymentPeriod\":14,\"status\":\"pending\",\"closedReason\":null,\"comment\":null,\"promo\":{},\"params\":[{\"name\":\"test_period\",\"value\":false,\"label\":\"Okres testowy (do 7 dni od zam\\u00f3wienia)\",\"type\":\"bool\",\"is_hidden\":false},{\"name\":\"ip\",\"value\":null,\"label\":\"IP\",\"type\":\"string\",\"is_hidden\":false},{\"name\":\"ipmi\",\"value\":null,\"label\":\"IPMI\",\"type\":\"string\",\"is_hidden\":false}],\"promoValidTo\":null,\"bc\":0}]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/models\\\/Order.php\",\"line\":260,\"function\":\"create\",\"class\":\"Orders_Model_OrderLineFactory\",\"type\":\"::\",\"args\":[{},null,null,{},999,1,\"1\",\"13\",false,{\"date\":\"2017-04-13 15:21:47.000000\",\"timezone_type\":3,\"timezone\":\"Europe\\\/Warsaw\"},\"recurrent\",\"auto_on_payment\",\"none\",\"proforma\",false,{},null,\"%product_name% %custom_name% [nr zam.: %ol_number%]. Za okres %date_from% - %date_to%\",14,\"pending\",null,null,{},[{\"name\":\"test_period\",\"value\":false,\"label\":\"Okres testowy (do 7 dni od zam\\u00f3wienia)\",\"type\":\"bool\",\"is_hidden\":false},{\"name\":\"ip\",\"value\":null,\"label\":\"IP\",\"type\":\"string\",\"is_hidden\":false},{\"name\":\"ipmi\",\"value\":null,\"label\":\"IPMI\",\"type\":\"string\",\"is_hidden\":false}]]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/models\\\/OrderFactory.php\",\"line\":195,\"function\":\"addLine\",\"class\":\"Orders_Model_Order\",\"type\":\"->\",\"args\":[null,null,null,{},999,1,\"1\",\"13\",false,{\"date\":\"2017-04-13 15:21:47.000000\",\"timezone_type\":3,\"timezone\":\"Europe\\\/Warsaw\"},\"recurrent\",\"auto_on_payment\",\"none\",\"proforma\",false,{},null,\"%product_name% %custom_name% [nr zam.: %ol_number%]. Za okres %date_from% - %date_to%\",14,\"pending\",null,null,{},[{\"name\":\"test_period\",\"value\":false,\"label\":\"Okres testowy (do 7 dni od zam\\u00f3wienia)\",\"type\":\"bool\",\"is_hidden\":false},{\"name\":\"ip\",\"value\":null,\"label\":\"IP\",\"type\":\"string\",\"is_hidden\":false},{\"name\":\"ipmi\",\"value\":null,\"label\":\"IPMI\",\"type\":\"string\",\"is_hidden\":false}]]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/services\\\/PlaceOrder.php\",\"line\":206,\"function\":\"create\",\"class\":\"Orders_Model_OrderFactory\",\"type\":\"::\",\"args\":[{},{},{\"id\":\"PLN\",\"symbol\":\"PLN\",\"description\":\"Polski z\\u0142oty\"},[{\"product\":{},\"net_price\":999,\"promo\":{},\"params\":{\"test_period\":false,\"ip\":null,\"ipmi\":null}}]]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Orders\\\/services\\\/PlaceOrder.php\",\"line\":56,\"function\":\"placeOrder\",\"class\":\"Orders_Service_PlaceOrder\",\"type\":\"->\",\"args\":[15,\"pl_PL\",\"PLN\",[{\"productId\":{},\"netPrice\":999,\"promoId\":46,\"promoPrice\":749,\"params\":{\"test_period\":false,\"ip\":null,\"ipmi\":null}}],{\"product\":{\"172\":[{\"id\":\"general_tos_pl_PL_v1_00_20150403\",\"title\":\"Regulamin \\u015bwiadczenia us\\u0142ug\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/Regulamin_swiadczenia_uslug_pl_pl_v1_00_20150403.pdf\"},{\"id\":\"server_pricelist_pl_PL_v3_0_20160322\",\"title\":\"Cennik Serwer\\u00f3w Dedykowanych\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/serwery\\\/Cennik_Serwerow_Dedykowanych_pl_pl_v3_0_20160322.pdf\"},{\"id\":\"server_tos_pl_PL_v1_3_20150821\",\"title\":\"Regulamin Serwer\\u00f3w Dedykowanych\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/serwery\\\/Regulamin_Serwerow_Dedykowanych_pl_pl_v1_3_20150821.pdf\"}]},\"promo\":{\"46\":[{\"id\":\"promo_server_duo_v2_25_pl_PL_v1_0_20160412\",\"title\":\"Regulamin Promocji DUO V2 -25%\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/promocje\\\/Regulamin_promocji_DUO_v2_-25_Off_v_1_0_pl_pl_20160412.pdf\"}]}}]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/application\\\/modules\\\/Cart\\\/src\\\/Cart\\\/Controller\\\/IndexController.php\",\"line\":97,\"function\":\"placeOrderFromCart\",\"class\":\"Orders_Service_PlaceOrder\",\"type\":\"->\",\"args\":[{},{\"product\":{\"172\":[{\"id\":\"general_tos_pl_PL_v1_00_20150403\",\"title\":\"Regulamin \\u015bwiadczenia us\\u0142ug\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/Regulamin_swiadczenia_uslug_pl_pl_v1_00_20150403.pdf\"},{\"id\":\"server_pricelist_pl_PL_v3_0_20160322\",\"title\":\"Cennik Serwer\\u00f3w Dedykowanych\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/serwery\\\/Cennik_Serwerow_Dedykowanych_pl_pl_v3_0_20160322.pdf\"},{\"id\":\"server_tos_pl_PL_v1_3_20150821\",\"title\":\"Regulamin Serwer\\u00f3w Dedykowanych\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/serwery\\\/Regulamin_Serwerow_Dedykowanych_pl_pl_v1_3_20150821.pdf\"}]},\"promo\":{\"46\":[{\"id\":\"promo_server_duo_v2_25_pl_PL_v1_0_20160412\",\"title\":\"Regulamin Promocji DUO V2 -25%\",\"file\":\"\\\/userfiles\\\/doc\\\/pl\\\/regulaminy\\\/promocje\\\/Regulamin_promocji_DUO_v2_-25_Off_v_1_0_pl_pl_20160412.pdf\"}]}}]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/vendor\\\/zendframework\\\/zendframework1\\\/library\\\/Zend\\\/Controller\\\/Action.php\",\"line\":516,\"function\":\"showAction\",\"class\":\"Cart_IndexController\",\"type\":\"->\",\"args\":[]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/vendor\\\/zendframework\\\/zendframework1\\\/library\\\/Zend\\\/Controller\\\/Dispatcher\\\/Standard.php\",\"line\":308,\"function\":\"dispatch\",\"class\":\"Zend_Controller_Action\",\"type\":\"->\",\"args\":[\"showAction\"]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/vendor\\\/zendframework\\\/zendframework1\\\/library\\\/Zend\\\/Controller\\\/Front.php\",\"line\":954,\"function\":\"dispatch\",\"class\":\"Zend_Controller_Dispatcher_Standard\",\"type\":\"->\",\"args\":[{},{\"headersSentThrowsException\":true}]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/vendor\\\/zendframework\\\/zendframework1\\\/library\\\/Zend\\\/Application\\\/Bootstrap\\\/Bootstrap.php\",\"line\":105,\"function\":\"dispatch\",\"class\":\"Zend_Controller_Front\",\"type\":\"->\",\"args\":[]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/vendor\\\/zendframework\\\/zendframework1\\\/library\\\/Zend\\\/Application.php\",\"line\":382,\"function\":\"run\",\"class\":\"Zend_Application_Bootstrap_Bootstrap\",\"type\":\"->\",\"args\":[]},{\"file\":\"\\\/var\\\/www\\\/virtual\\\/maki\\\/www\\\/index.php\",\"line\":22,\"function\":\"run\",\"class\":\"Zend_Application\",\"type\":\"->\",\"args\":[]}]" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment