Throws if condition is not truthy.
Attention! Due to a bug in typescript you will need to explicitly set the LoggerInterface type in
order to have the assertions having an effect on unreachable code. Example:
const log: LoggerInterface = Logger('xxx')
Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447
OptionalfactoryAlways throws.
Attention! Due to a bug in typescript you will need to explicitly set the LoggerInterface type in
order to have the assertions having an effect on unreachable code. Example:
const log: LoggerInterface = Logger('xxx')
Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447
Deprecated
use .level = LogLevel.off or LogLevel.all