fix(core): update

This commit is contained in:
2024-06-06 17:05:55 +02:00
parent 92a48c415d
commit a88b614e80
4 changed files with 66 additions and 50 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartlog',
version: '3.0.6',
version: '3.0.7',
description: 'A minimalistic, distributed, and extensible logging tool supporting centralized log management.'
}

View File

@ -9,6 +9,16 @@ export interface ISmartlogContructorOptions {
}
export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
// STATIC
public static createForCommitinfo(commitinfo: plugins.smartlogInterfaces.ILogContext['commitinfo']) {
return new Smartlog({
logContext: {
commitinfo
},
});
}
// INSTANCE
public logContext: plugins.smartlogInterfaces.ILogContext;
public minimumLogLevel: plugins.smartlogInterfaces.TLogLevel;