UNPKG

@edugouvfr/ngx-dsfr

Version:

NgxDsfr est un portage Angular des éléments d'interface du Système de Design de l'État Français (DSFR).

25 lines (24 loc) 784 B
import * as i0 from "@angular/core"; /** Levels used for identifying the severity of an event. Levels are organized from most specific to least. */ export declare enum DsfrLogLevel { OFF = 0, ERROR = 2, WARN = 3, INFO = 4, DEBUG = 5, ALL = 7 } export declare class LoggerService { /** Indique à partir de quel niveau on effectue la journalisation, WARN par défaut. */ private _level; constructor(); set level(value: DsfrLogLevel); error(message: string): void; warn(message: string): void; info(message: string): void; debug(message: string): void; private log; private levelAsString; static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>; }