Add logging framework with Logger, LoggerFactory, and appenders
- Introduced ILogger interface for logging methods - Implemented Logger class with various logging levels and message formatting - Created LoggerFactory for managing logger instances and appender configuration - Added LoggingLevel enum and mapping for logging level types - Developed ConsoleAppender and TechnikerMeAppender for different logging outputs - Implemented appender management with AppenderFactory and base Appender class - Established Threshold class for controlling logging levels
This commit is contained in:
5
src/logger/appenders/IAppender.ts
Normal file
5
src/logger/appenders/IAppender.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { LoggingLevelType } from '../LoggingLevel';
|
||||
|
||||
export interface IAppender {
|
||||
log(timestamp: string, level: LoggingLevelType, category: string, message: string): void;
|
||||
}
|
||||
Reference in New Issue
Block a user