mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
Logs: Add log level Fatal (#24185)
- recognizes log levels "fatal" and "information" - renders "fatal" with same color as other levels similar to "critical"
This commit is contained in:
parent
4f5ce48b2a
commit
9e06f9c402
@ -8,6 +8,7 @@ import { DataFrame } from './dataFrame';
|
||||
*/
|
||||
export enum LogLevel {
|
||||
emerg = 'critical',
|
||||
fatal = 'critical',
|
||||
alert = 'critical',
|
||||
crit = 'critical',
|
||||
critical = 'critical',
|
||||
@ -17,6 +18,7 @@ export enum LogLevel {
|
||||
eror = 'error',
|
||||
error = 'error',
|
||||
info = 'info',
|
||||
information = 'info',
|
||||
notice = 'info',
|
||||
dbug = 'debug',
|
||||
debug = 'debug',
|
||||
|
@ -15,7 +15,7 @@ describe('getLoglevel()', () => {
|
||||
});
|
||||
|
||||
it('returns no log level on when level is part of a word', () => {
|
||||
expect(getLogLevel('this is information')).toBe(LogLevel.unknown);
|
||||
expect(getLogLevel('who warns us')).toBe(LogLevel.unknown);
|
||||
});
|
||||
|
||||
it('returns same log level for long and short version', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user