- 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
20 lines
466 B
TypeScript
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;
|
|
}
|
|
}
|