mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #14696 from grafana/davkal/fix-14686
Logs data model: add more log levels
This commit is contained in:
commit
46f9418605
@ -2,14 +2,23 @@ import _ from 'lodash';
|
|||||||
import { TimeSeries } from 'app/core/core';
|
import { TimeSeries } from 'app/core/core';
|
||||||
import colors, { getThemeColor } from 'app/core/utils/colors';
|
import colors, { getThemeColor } from 'app/core/utils/colors';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mapping of log level abbreviation to canonical log level.
|
||||||
|
* Supported levels are reduce to limit color variation.
|
||||||
|
*/
|
||||||
export enum LogLevel {
|
export enum LogLevel {
|
||||||
|
emerg = 'critical',
|
||||||
|
alert = 'critical',
|
||||||
crit = 'critical',
|
crit = 'critical',
|
||||||
critical = 'critical',
|
critical = 'critical',
|
||||||
warn = 'warning',
|
warn = 'warning',
|
||||||
warning = 'warning',
|
warning = 'warning',
|
||||||
err = 'error',
|
err = 'error',
|
||||||
|
eror = 'error',
|
||||||
error = 'error',
|
error = 'error',
|
||||||
info = 'info',
|
info = 'info',
|
||||||
|
notice = 'info',
|
||||||
|
dbug = 'debug',
|
||||||
debug = 'debug',
|
debug = 'debug',
|
||||||
trace = 'trace',
|
trace = 'trace',
|
||||||
unkown = 'unkown',
|
unkown = 'unkown',
|
||||||
|
Loading…
Reference in New Issue
Block a user