المشاريع
عرض على GitHub
dszczer/ideolog-symfony-format
حول
Cheatsheet for PHPStorm Ideolog Symfony logs format
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلCheatsheet for PHPStorm Ideolog Symfony logs format
Requirements
- PHPStorm
- Installed and running Ideolog plugin
Import settings
Easiest way is to import Ideolog settings into your IDE.
- Download
ideologSymfonyFormat.xmlfile. - Go to Settings -> Editor -> Log highlighting (Ideolog).
- Click Import button and select downloaded XML file. Activate new pattern if needed.
- Download or copy/paste
example.logto test if everything is OK.
Manual setting up
- Go to Settings -> Editor -> Log highlighting (Ideolog).
- Add new Log format (plus sign on the right of the top list).
- Put a name Symfony or whatever suits You.
- In the field Message pattern place this regex:
^\[(\d{4}-\d{2}-\d{2}[T\s]?\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:[\+-]\d{2}:?\d{2})?)]\s+(\w+)\.(\w+):([^\n]*)$ - In the field Message start pattern put this regex:
^[\[#]. - In the field Time format put pattern that matches your case, e.g.:
yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ. - In the field Time capture group set number 1.
- In the field Severity capture group set number 3.
- In the field Category capture group set number 2.
- Push OK button. You're almost done!
Tweaks
Critical severity
To make CRITICAL severity to highlight do following steps:
- Go to Settings -> Editor -> Log highlighting (Ideolog).
- Add new Pattern (plus sign on the right of the bottom-left list).
- Enter new pattern:
^\s*c(ritical)?\s*$ - Select newly created pattern on the list and click Edit icon on the right.
- Under pattern input box, select highlight line option.
- Check Foreground, click on the color field. In new dialog window, at top of the right corner, type red color in hex
#F00and push Enter key. - Uncheck Background.
- Click OK button, close settings and You're done!
Here is a screenshot of all actions described above.

Test case

استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…