Files
MyDIAPp/src/logger/Threshold.ts
Alexander Zinn ab42660e80 Implement configuration management and dependency injection framework
- Added ConfigurationReader for loading dependency definitions
- Introduced FileConfigurationLoader for file-based configuration loading
- Created IDependencyManager and IDependencyProvider interfaces for managing dependencies
- Implemented DependencyProvider for providing instances based on lifecycle
- Added Default class for logging level configuration
- Enhanced HealthCheckApi with improved route setup and health check handling
2025-11-15 05:00:02 -05:00

20 lines
466 B
TypeScript

import Defaults from '../Default';
import {Subject} from '../lang/observables';
import {LoggingLevel} from './LoggingLevel';
export class Threshold {
private _threshold: Subject<LoggingLevel>;
constructor(loggingLevel?: LoggingLevel) {
this._threshold = new Subject(loggingLevel ?? Defaults.loggingLevel);
}
set value(value: LoggingLevel) {
this._threshold.value = value;
}
get value(): LoggingLevel {
return this._threshold.value;
}
}