import { Observable } from 'rxjs/Rx'; import { PuiDiagnosticLogData } from './lib'; /** * Logging service. * @export * @class PuiLoggingService * @implements {OnDestroy} */ export declare class PuiLoggingService { /** * Log a diagnostic trace level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static trace(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic debug level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static debug(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic info level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static info(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic warn level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static warn(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic error level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static error(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic fatal level (severity) item. * @static * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ static fatal(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic item. Log level is required. * @static * @param {DiagnosticLogData} content A DiagnosticLogData object including log level. * @memberof PuiLoggingService */ static diag(content: PuiDiagnosticLogData): void; /** * Send a DiagnosticLogData item. * @private * @static * @param {DiagnosticLogData} diagnosticLogData Complete description of a diagnostic log entry. * @memberof PuiLoggingService */ private static sendDiagnosticLogItem(diagnosticLogData); /** * Fetch a DiagnosticLogData observable. * @static * @returns {Observable} Observable to subscribe to. * @memberof PuiLoggingService */ static getDiagnosticLogSubject(): Observable; /** * Log a diagnostic trace level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ trace(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic debug level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ debug(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic info level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ info(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic warn level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ warn(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic error level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ error(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic fatal level (severity) item. * @param {(string | DiagnosticLogData)} content A log message or DiagnosticLogData object. * @memberof PuiLoggingService */ fatal(content: string | PuiDiagnosticLogData): void; /** * Log a diagnostic item. Log level is required. * @param {DiagnosticLogData} content A DiagnosticLogData object including log level. * @memberof PuiLoggingService */ diag(content: PuiDiagnosticLogData): void; }