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

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