# LogLevel Class

Module
import { LogLevel } from "@tsed/logger"
Source/packages/logger/src/core/LogLevel.ts

# Overview

class LogLevel {
<span class="token keyword">constructor</span><span class="token punctuation">(</span>level<span class="token punctuation">:</span> <span class="token keyword">number</span><span class="token punctuation">,</span> levelStr<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">static</span> <span class="token function">getLevel</span><span class="token punctuation">(</span>sArg<span class="token punctuation">:</span> <span class="token keyword">any</span> | <span class="token keyword">string</span> | LogLevel<span class="token punctuation">,</span> defaultLevel?<span class="token punctuation">:</span> <span class="token keyword">string</span> | LogLevel<span class="token punctuation">)</span><span class="token punctuation">:</span> LogLevel<span class="token punctuation">;</span>
<span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">;</span>
<span class="token function">isLessThanOrEqualTo</span><span class="token punctuation">(</span>otherLevel<span class="token punctuation">:</span> LogLevel | <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
<span class="token function">isGreaterThanOrEqualTo</span><span class="token punctuation">(</span>otherLevel<span class="token punctuation">:</span> LogLevel | <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
<span class="token function">isEqualTo</span><span class="token punctuation">(</span>otherLevel<span class="token punctuation">:</span> LogLevel | <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>

}

# Members

static getLevel(sArg: any | string | LogLevel, defaultLevel?: string | LogLevel): LogLevel;

toString(): string;

isLessThanOrEqualTo(otherLevel: LogLevel | string): boolean;

isGreaterThanOrEqualTo(otherLevel: LogLevel | string): boolean;

isEqualTo(otherLevel: LogLevel | string): boolean;

Other topics