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) 982 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,// No events will be logged. ERROR = 2,// An error in the application, possibly recoverable. WARN = 3,// An event that might possible lead to an error. INFO = 4,// An event for informational purposes. DEBUG = 5,// A general debugging event. 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>; }