UNPKG

kotlineum

Version:

React implementation of Kotlin patterns and features, including Flow patterns (SharedFlow and StateFlow) and MVVM architecture with ViewModels

66 lines (65 loc) 1.64 kB
import { LogLevel } from './logger'; /** * Kotlineum logging configuration * Provides simple functions to control logging behavior */ /** * Disable all logging */ export declare function disableLogging(): void; /** * Enable all logging */ export declare function enableLogging(): void; /** * Set the minimum log level * @param level The minimum log level to display */ export declare function setLogLevel(level: LogLevel): void; /** * Configure logging with custom options * @param options Custom logging options */ export declare function configureLogging(options: { enabled?: boolean; level?: LogLevel; showTimestamp?: boolean; }): void; /** * Preset configurations for common scenarios */ export declare const LoggingPresets: { /** * Production preset - only errors */ production: () => void; /** * Development preset - all logs */ development: () => void; /** * Minimal preset - only errors and warnings */ minimal: () => void; }; declare const _default: { disableLogging: typeof disableLogging; enableLogging: typeof enableLogging; setLogLevel: typeof setLogLevel; configureLogging: typeof configureLogging; LoggingPresets: { /** * Production preset - only errors */ production: () => void; /** * Development preset - all logs */ development: () => void; /** * Minimal preset - only errors and warnings */ minimal: () => void; }; }; export default _default;