/******************************************************************************** * Copyright (C) 2017 Ericsson and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available under the following Secondary * Licenses when the conditions for such availability set forth in the Eclipse * Public License v. 2.0 are satisfied: GNU General Public License, version 2 * with the GNU Classpath Exception which is available at * https://www.gnu.org/software/classpath/license.html. * * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ import { JsonRpcServer } from '@gedit/connection'; export declare const LoggerServer: unique symbol; export declare const loggerPath = "/services/logger"; export interface LoggerServer extends JsonRpcServer { setLogLevel(name: string, logLevel: number): Promise; getLogLevel(name: string): Promise; log(name: string, logLevel: number, message: any, params: any[]): Promise; child(name: string): Promise; } export declare const LoggerClient: unique symbol; export interface LogLevelChangedEvent { loggerName: string; newLogLevel: number; } export interface LoggerClient { onLogLevelChanged(event: LogLevelChangedEvent): void; } export declare class DispatchingLoggerClient implements LoggerClient { readonly clients: Set; onLogLevelChanged(event: LogLevelChangedEvent): void; } export declare const rootLoggerName = "root"; export declare enum LogLevel { FATAL = 60, ERROR = 50, WARN = 40, INFO = 30, DEBUG = 20, TRACE = 10 } export declare namespace LogLevel { const strings: Map; function toString(level: LogLevel): string | undefined; function fromString(levelStr: string): LogLevel | undefined; } export declare namespace ConsoleLogger { function reset(): void; function log(name: string, logLevel: number, message: string, params: any[]): void; } //# sourceMappingURL=logger-protocol.d.ts.map