Commit 9e06f9c4 by David Committed by GitHub

Logs: Add log level Fatal (#24185)

- recognizes log levels "fatal" and "information"
- renders "fatal" with same color as other levels similar to "critical"
parent 4f5ce48b
...@@ -8,6 +8,7 @@ import { DataFrame } from './dataFrame'; ...@@ -8,6 +8,7 @@ import { DataFrame } from './dataFrame';
*/ */
export enum LogLevel { export enum LogLevel {
emerg = 'critical', emerg = 'critical',
fatal = 'critical',
alert = 'critical', alert = 'critical',
crit = 'critical', crit = 'critical',
critical = 'critical', critical = 'critical',
...@@ -17,6 +18,7 @@ export enum LogLevel { ...@@ -17,6 +18,7 @@ export enum LogLevel {
eror = 'error', eror = 'error',
error = 'error', error = 'error',
info = 'info', info = 'info',
information = 'info',
notice = 'info', notice = 'info',
dbug = 'debug', dbug = 'debug',
debug = 'debug', debug = 'debug',
......
...@@ -15,7 +15,7 @@ describe('getLoglevel()', () => { ...@@ -15,7 +15,7 @@ describe('getLoglevel()', () => {
}); });
it('returns no log level on when level is part of a word', () => { 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', () => { it('returns same log level for long and short version', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment