@yaagoub/decorators
Version:
Angular decorators
50 lines (49 loc) • 1.63 kB
TypeScript
import { ControlLogService } from '../services/ygb-control-log.service';
import * as i0 from "@angular/core";
export declare class Log {
/**
* Formats the log message with the given parameters.
* @param params - The parameters to format the message with.
* @returns The formatted message.
*/
private static formatMessage;
/**
* Logs an info message.
* @param params - The parameters to log.
* @example
* Log.info('This is an info message');
* Log.info('User %s logged in', username);
*/
static info(...params: unknown[]): void;
/**
* Logs a warning message.
* @param params - The parameters to log.
* @example
* Log.warn('This is a warning message');
* Log.warn('Low disk space: %s', diskSpace);
*/
static warn(...params: unknown[]): void;
/**
* Logs an error message.
* @param params - The parameters to log.
* @example
* Log.error('This is an error message');
* Log.error('Failed to load resource: %s', resourceName);
*/
static error(...params: unknown[]): void;
/**
* Logs a debug message.
* @param params - The parameters to log.
* @example
* Log.debug('This is a debug message');
* Log.debug('Debugging value: %s', debugValue);
*/
static debug(...params: unknown[]): void;
/**
* Injects the ControlLogService.
* @returns The injected ControlLogService.
*/
static injectedControlLogService(): ControlLogService;
static ɵfac: i0.ɵɵFactoryDeclaration<Log, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<Log>;
}