@analog-tools/logger
Version:
Logging utility for AnalogJS applications
48 lines (47 loc) • 970 B
TypeScript
import { ColorEnum, Icon } from './logger.types';
/**
* Style configuration for semantic style names
*/
export interface StyleConfig {
color: ColorEnum;
bold?: boolean;
underline?: boolean;
}
/**
* Global style scheme configuration
*/
export interface StyleScheme {
highlight: StyleConfig;
accent: StyleConfig;
attention: StyleConfig;
success: StyleConfig;
warning: StyleConfig;
error: StyleConfig;
info: StyleConfig;
debug: StyleConfig;
}
/**
* Icon scheme configuration
*/
export interface IconScheme {
success: Icon;
warning: Icon;
error: Icon;
info: Icon;
debug: Icon;
}
/**
* Global logger styling configuration
*/
export interface LoggerStyleConfig {
styles: Partial<StyleScheme>;
icons: Partial<IconScheme>;
}
/**
* Default style scheme
*/
export declare const DEFAULT_STYLE_SCHEME: StyleScheme;
/**
* Default icon scheme
*/
export declare const DEFAULT_ICON_SCHEME: IconScheme;