@iotile/iotile-common
Version:
Common utilities for IoTile Packages and Applications
25 lines (24 loc) • 1.27 kB
TypeScript
import { Category, MessageType, ErrorType, LogLevel } from "typescript-logging";
export declare class LoggingBase {
private category;
constructor(category: Category);
/**
* @param level
* @param applyChildren default: fase. If set to `true` then the level will be set for all
* child categories.
*
* @description **WARNING**: This will override the entire category configuration, not just the LogLevel.
* **DO NOT** use in production.
*
* @todo Keep current config settings and only update LogLevel. It is not apparent how
* to do this and may require a PR for https://github.com/mreuvers/typescript-logging
*/
protected setLogLevel(level: LogLevel, applyChildren?: boolean): void;
protected buildLogMessage(msg: string, extraArgs?: {} | any[]): MessageType;
protected logException(msg: string, error: ErrorType, extraArgs?: {}): void;
protected logError(msg: string, extraArgs?: {} | any[]): void;
protected logDebug(msg: string, extraArgs?: {} | any[]): void;
protected logInfo(msg: string, extraArgs?: {} | any[]): void;
protected logTrace(msg: string, extraArgs?: {} | any[]): void;
protected logWarning(msg: string, extraArgs?: {} | any[]): void;
}