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';
*/
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', () => {
......
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