ionic-logging-service
Version:
Logging functionalities for apps built with Ionic framework
29 lines (28 loc) • 911 B
TypeScript
import * as log4javascript from "log4javascript";
import { LogLevel } from "./log-level.model";
/**
* Helper class for converting log levels from and to different data type.
*/
export declare class LogLevelConverter {
/**
* Converts log4javascript.Level to internal LogLevel.
*
* @param level log4javascript's data type
* @return internal data type.
*/
static levelFromLog4Javascript(level: log4javascript.Level): LogLevel;
/**
* Converts string representation to internal LogLevel.
*
* @param level string representation
* @return internal data type.
*/
static levelFromString(level: string): LogLevel;
/**
* Converts internal LogLevel to log4javascript.Level.
*
* @param internal data type.
* @return level log4javascript's data type
*/
static levelToLog4Javascript(level: LogLevel): log4javascript.Level;
}