feat(core): Initial project scaffold and implementation: Deno CLI, ISO tooling, cloud-init generation, packaging and installer scripts
This commit is contained in:
29
ts/logging.ts
Normal file
29
ts/logging.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Logging utilities for isocreator
|
||||
*/
|
||||
|
||||
import { smartlog } from './plugins.ts';
|
||||
|
||||
// Create logger instance
|
||||
export const logger = new smartlog.Smartlog({
|
||||
logContext: {
|
||||
company: 'Lossless GmbH',
|
||||
companyunit: 'serve.zone',
|
||||
containerName: 'isocreator',
|
||||
environment: 'cli',
|
||||
runtime: 'deno',
|
||||
zone: 'local',
|
||||
},
|
||||
minimumLogLevel: 'info',
|
||||
});
|
||||
|
||||
/**
|
||||
* Log levels for convenience
|
||||
*/
|
||||
export const log = {
|
||||
info: (message: string) => logger.log('info', message),
|
||||
success: (message: string) => logger.log('info', `✅ ${message}`),
|
||||
warn: (message: string) => logger.log('warn', `⚠️ ${message}`),
|
||||
error: (message: string) => logger.log('error', `❌ ${message}`),
|
||||
debug: (message: string) => logger.log('silly', message),
|
||||
};
|
||||
Reference in New Issue
Block a user