This commit is contained in:
2025-05-19 22:47:13 +00:00
parent 62dc067a2a
commit e61766959f
14 changed files with 25 additions and 1946 deletions

View File

@ -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
View 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');

View File

@ -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,
};