import { Logger } from "./Logger" ; import { TaskData } from "./LogEntry" ; export class TaskLogger { logger : Logger ; constructor ( private pkg , private task ) { this . logger = new Logger ( ) ; } info ( msg , data ? ) { this . logger . info ( msg , { package : this . pkg , task : this . task , ... data } ) ; } warn ( msg , data ? ) { this . logger . warn ( msg , { package : this . pkg , task : this . task , ... data } ) ; } error ( msg , data ? ) { this . logger . error ( msg , { package : this . pkg , task : this . task , ... data } ) ; } verbose ( msg , data ? ) { this . logger . verbose ( msg , { package : this . pkg , task : this . task , ... data } ) ; } silly ( msg , data ? ) { this . logger . silly ( msg , { package : this . pkg , task : this . task , ... data } ) ; } getLogs ( ) { return this . logger . logs ; } }