UNPKG

smyld-lib-common

Version:

SMYLD Javascript Core Library, contains several core APIs that benefit the developers working on SPA applications

39 lines 1.33 kB
/** * @file Main entry point for the smyld-lib-common library * @module smyld-lib-common * * This library provides logging utilities for JavaScript/TypeScript applications, * with special support for Vue.js applications through the VueLoggerPlugin. * * @example * // Basic usage with the default MainLogger * import MainLogger from 'smyld-lib-common'; * * MainLogger.info('Application started'); * MainLogger.debug('Configuration:', { apiUrl: 'https://api.example.com' }); * * @example * // Using a custom logger * import { Logger, LogLevel } from 'smyld-lib-common'; * * const userLogger = new Logger({ * source: 'UserService', * logLevel: LogLevel.INFO * }); * * userLogger.info('User logged in'); */ console.log("smyld-lib-common: Initializing logging library..."); /** * Default logger instance for the application. * This is the main entry point for logging and is exported as the default export. */ // Export all components of the library export { VueLoggerPlugin } from './VueLoggerPlugin'; export { Logger } from './logging/Logger'; export { LogManager } from './logging/LogManager'; export { LogLevel } from './logging/LogSettings'; export { LogMessage, Type } from './logging/LogMessage'; import MainLogger from "./logging/Logger"; export default MainLogger; //# sourceMappingURL=index.js.map