Enums
ELoggerLogLevel
Defined in: src/domain/enum/logger-log-level.enum.ts
Defines the available log levels for the ILogger.
src/domain/enum/logger-log-level.enum.ts
export enum ELoggerLogLevel {
DEBUG = "debug",
ERROR = "error",
INFO = "info",
TRACE = "trace",
WARN = "warn",
}- Hierarchy:
TRACE>DEBUG>INFO>WARN>ERROR(most verbose to least verbose). - Usage: Used in
IConsoleLoggerOptionsto set the minimum logging level.
EServiceToken
Defined in: src/domain/enum/service-token.enum.ts
Defines standard symbol tokens for commonly used services within the IContainer.
src/domain/enum/service-token.enum.ts
export enum EServiceToken {
CONTAINER = "container", // Typically used to register the container itself
FACTORY = "factory", // For the main application Factory
LOGGER = "logger", // For the main application Logger
REGISTRY = "registry", // For the main application Registry
}- Purpose: Provides consistent, well-known symbols for core service registration and retrieval, reducing the need for custom symbols for basic services.
Last updated on