UNPKG

@pilotlab/lux-debug

Version:

A luxurious user experience framework, developed by your friends at Pilot.

41 lines (40 loc) 1.89 kB
import { MapList } from '@pilotlab/lux-collections'; import LogFormat from './logFormat'; import { LogColor, LogType } from './logEnums'; import LogMessage from './logMessage'; import LogConsole from './logConsole'; export declare class Logger { constructor(); isTrace: boolean; static readonly format: LogFormat; private static _format; static readonly time: string; static setColor(text: string, color: LogColor): string; protected p_categories: MapList<string, boolean>; protected p_TIME_STAMP_LENGTH: number; protected p_HEADER_LENGTH: number; protected p_SPACE: string; protected p_LABEL_AREA_LENGTH_MAX: number; protected p_FILL_SPACES_MIN: number; protected p_SPACE_FILLER_START: string; protected p_SPACE_FILLER: string; protected p_INDENT_START: string; readonly console: LogConsole; protected p_console: LogConsole; tagLengthMax: number; protected p_tagLengthMax: number; lineLengthMax: number; protected p_lineLengthMax: number; setCategoryMode(category: string, isOn: boolean): void; isCategoryOn(category: string): boolean; assert(isConditionMet: boolean, message: string, tag?: string, category?: string): boolean; data(message: any, tag?: string, category?: string): LogMessage; error(message: any, tag?: string, category?: string): LogMessage; info(message: any, tag?: string, category?: string): LogMessage; warn(message: any, tag?: string, category?: string): LogMessage; log(message: any, tag?: string, category?: string): LogMessage; test(message: any, tag?: string, category?: string): LogMessage; logType(type: LogType, message: any, tag?: string, category?: string): LogMessage; custom(message: any, label?: string, labelColor?: LogColor, tag?: string, category?: string, spinnerCharacter?: string): LogMessage; } export default Logger;