fix(logging): Refactor logger initialization to use commitinfo data

This commit is contained in:
Philipp Kunz 2024-06-23 17:37:19 +02:00
parent 927cd961fd
commit 571249705e
3 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
## [1.2.4] - 1.2.4
fix(logging): Refactor logger initialization to use commitinfo data
## [1.2.3] ## [1.2.3]
fix(aidocs): Fix bug in AiDoc class causing undefined token handling fix(aidocs): Fix bug in AiDoc class causing undefined token handling

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsdoc', name: '@git.zone/tsdoc',
version: '1.2.3', version: '1.2.4',
description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.'
} }

View File

@ -1,15 +1,6 @@
import { commitinfo } from './00_commitinfo_data.js';
import * as plugins from './plugins.js'; import * as plugins from './plugins.js';
export const logger = new plugins.smartlog.Smartlog({ export const logger = plugins.smartlog.Smartlog.createForCommitinfo(commitinfo);
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
environment: 'local',
runtime: 'node',
zone: 'gitzone',
},
minimumLogLevel: 'silly',
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal()); logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());