Files
ChannelTests-TS/test/logger/Threshold.ts
Alexander Zinn 3875b3878d Refactor logging level handling and remove example usage
* Updated `CommandLineOptions` and `ConfigurationObject` to use `LoggingLevel` type instead of string for log levels.
* Modified `LoggerFactory` to set logging levels using the new `LoggingLevelMapping` methods.
* Removed the `example-usage.ts` file as it was no longer needed.
* Adjusted `Threshold` class to simplify logging level management.
2025-08-18 18:22:38 -04:00

14 lines
275 B
TypeScript

import {LoggingLevel} from './LoggingLevel';
export class Threshold {
private readonly _level: {value: LoggingLevel};
constructor({level}: {level: LoggingLevel}) {
this._level = {value: level};
}
get value(): LoggingLevel {
return this._level.value;
}
}