update
This commit is contained in:
		| @@ -12,3 +12,4 @@ export * from './security-utils.js'; | ||||
| export * from './shared-security-manager.js'; | ||||
| export * from './event-system.js'; | ||||
| export * from './websocket-utils.js'; | ||||
| export * from './logger.js'; | ||||
|   | ||||
							
								
								
									
										10
									
								
								ts/core/utils/logger.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								ts/core/utils/logger.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| import * as plugins from '../../plugins.js'; | ||||
|  | ||||
| export const logger = new plugins.smartlog.Smartlog({ | ||||
|   logContext: {}, | ||||
|   minimumLogLevel: 'info', | ||||
| }); | ||||
|  | ||||
| logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal()); | ||||
|  | ||||
| logger.log('info', 'Logger initialized'); | ||||
| @@ -26,6 +26,8 @@ import * as smartcrypto from '@push.rocks/smartcrypto'; | ||||
| import * as smartacme from '@push.rocks/smartacme'; | ||||
| import * as smartacmePlugins from '@push.rocks/smartacme/dist_ts/smartacme.plugins.js'; | ||||
| import * as smartacmeHandlers from '@push.rocks/smartacme/dist_ts/handlers/index.js'; | ||||
| import * as smartlog from '@push.rocks/smartlog'; | ||||
| import * as smartlogDestinationLocal from '@push.rocks/smartlog/destination-local'; | ||||
| import * as taskbuffer from '@push.rocks/taskbuffer'; | ||||
|  | ||||
| export { | ||||
| @@ -39,6 +41,8 @@ export { | ||||
|   smartacme, | ||||
|   smartacmePlugins, | ||||
|   smartacmeHandlers, | ||||
|   smartlog, | ||||
|   smartlogDestinationLocal, | ||||
|   taskbuffer, | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user