@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
21 lines (20 loc) • 804 B
TypeScript
import { ConsoleLogger } from '@nestjs/common';
/**
* Custom logger that extends NestJS's ConsoleLogger with environment-based log level filtering
*/
export declare class LoggerUtility extends ConsoleLogger {
private static readonly ENV_LOG_LEVEL_KEY;
constructor(context?: string);
/**
* Static method to create a logger with a specific context
* @param {string} context - The context name for the logger
* @returns {LoggerUtility} A new logger instance with the specified context
*/
static getLogger(context?: string): LoggerUtility;
/**
* Get the current log level from environment variable
* @returns {Array<LogLevel>} Array of enabled log levels based on environment configuration
* @private
*/
private static getLogLevelsFromEnv;
}