grafana/public
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
..
app Explore: Add switch to restructure logs for better readability (#36324) 2021-07-16 15:08:47 +02:00
dashboards Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
emails Alerting: update email template (#34205) 2021-05-19 18:58:31 +02:00
fonts Security: Update default CSP template and fix firefox CSP issues (#34836) 2021-05-28 17:01:10 +02:00
img Add custom icons for layout options (#34890) 2021-05-31 10:38:39 +03:00
lib AzureMonitor: Kusto language support (#33528) 2021-05-11 16:48:59 +02:00
sass Transformations: State feature (alpha/beta) and more (#36630) 2021-07-12 16:42:04 +02:00
test GraphNG: uPlot 1.6.13 (#35844) 2021-06-17 13:20:27 -05:00
testdata GeoMap: Implement circle overlays (#36680) 2021-07-12 20:47:39 -07:00
vendor Decimals: Big Improvements to auto decimals and fixes to auto decimals bug found in 7.4-beta1 (#30519) 2021-01-22 16:37:56 +01:00
views Allow white labeling loading logo (#36174) 2021-07-02 14:17:10 +02:00
robots.txt add support for robots.txt file 2015-06-15 19:02:38 -04:00