import { RuntimeLogLevel , RuntimeLogBehavior , RuntimeLogLevels , RuntimeLogBehaviors , } from "@codotype/core" ; import chalk from "chalk" ; param args param options . level param runtimeLogBehavior export function logger ( args , options , runtimeLogBehavior ) { const { level } = options ; if ( runtimeLogBehavior === RuntimeLogBehaviors . suppress ) { return ; } if ( level === RuntimeLogLevels . verbose && runtimeLogBehavior === RuntimeLogBehaviors . verbose ) { console . log ( chalk . white ( args ) ) ; return ; } if ( level === RuntimeLogLevels . info ) { console . log ( chalk . blue ( args ) ) ; return ; } if ( level === RuntimeLogLevels . warning ) { console . log ( chalk . yellow ( args ) ) ; return ; } if ( level === RuntimeLogLevels . error ) { console . log ( chalk . red ( args ) ) ; return ; } }