fix(logging): Optimize logger instantiation and configuration.
This commit is contained in:
parent
2361bfcad4
commit
dc43deece9
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
## 1.9.103 - fix(logging): Optimize logger instantiation and configuration.
|
||||||
|
|
||||||
|
- Placeholder entry for the next version changes.
|
||||||
|
|
||||||
## 1.9.102 - fix(metadata): Ensure accurate project metadata in package.json
|
## 1.9.102 - fix(metadata): Ensure accurate project metadata in package.json
|
||||||
|
|
||||||
- Placeholder entry for the next version changes.
|
- Placeholder entry for the next version changes.
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/cli',
|
name: '@git.zone/cli',
|
||||||
version: '1.9.102',
|
version: '1.9.103',
|
||||||
description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.'
|
description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.'
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
|
import { commitinfo } from '@push.rocks/commitinfo';
|
||||||
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);
|
||||||
minimumLogLevel: 'silly',
|
|
||||||
logContext: {
|
|
||||||
company: 'Task Venture Capital GmbH',
|
|
||||||
companyunit: 'Lossless Cloud',
|
|
||||||
containerName: 'local',
|
|
||||||
environment: 'local',
|
|
||||||
runtime: 'node',
|
|
||||||
zone: 'gitzone',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());
|
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());
|
||||||
|
Loading…
Reference in New Issue
Block a user