grafana/public/app/plugins/panel/logs
Olof Bourghardt f4f2c197ae
Explore: Add switch to restructure logs for better readability (#36324)
* Add prettifyLogMessage to select components in test file

* Change entry depending on the value of prettifyLogMessage

* Add prettifyLogMessage to state

* Fix merge conflict

* Fixe bug where the log message wasn't parsed as JSON

* Implement function to restructure all logs

* Change elstic image version back to 7.7.1

* Add showCommonLabels that was missing

* Remove comment

* Put import of getParser together with the other imports

* Logs: fix bug where message isn't restructured if it contains ANSI code

* Logs: change label for switch to Restructure

* Remove unnecessary file

* Logs: added divider before switch component

* Add dividers between the different log options

* Remove unintentional changes

* Explore: remove dividers in log settings

* Explore: refactor for LogRowMessage for better readability

* remove unnecessary change

* Logs: fix bug where logs aren't restructured if they have highlights

* Logs: minor refactoring

* Logs: use memoizeOne to prevent parsing on every re-render

* Logs: calculate needsHilight inside renderLogMessage instead of outside

* Logs: fix bug where logs aren't prettified when wrap logs is disabled

* Explore: change name to prettify

* Remove console.log

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Dashboards: add switch to prettify log messages to the Logs fields

* Logs: make prettify only work for JSON logs

* Logs: fix bug with tests for logs

* Update public/app/plugins/panel/logs/module.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-07-16 15:08:47 +02:00
..
img Panels: Update panel logos (#23964) 2020-04-27 22:08:43 +02:00
LogsPanel.test.tsx Logs panel: Add option to show common labels (#36166) 2021-07-01 14:06:58 +02:00
LogsPanel.tsx Explore: Add switch to restructure logs for better readability (#36324) 2021-07-16 15:08:47 +02:00
module.tsx Explore: Add switch to restructure logs for better readability (#36324) 2021-07-16 15:08:47 +02:00
plugin.json Chore: show grafana labs not project (#23913) 2020-04-26 15:34:56 -07:00
types.ts Explore: Add switch to restructure logs for better readability (#36324) 2021-07-16 15:08:47 +02:00