import { debug , error , info , warning } from '@actions/core' ; const stringify = ( value ) : string => typeof value === 'string' ? value : value instanceof Error ? value . stack ?? value . toString ( ) : typeof value === 'number' ? value . toString ( ) : JSON . stringify ( value ) ; const log = ( logger ) : ( ( message : unknown ) => void ) => ( message ) : void => { logger ( stringify ( message ) ) ; } ; export const logDebug = log ( debug ) ; export const logError = log ( error ) ; export const logInfo = log ( info ) ; export const logWarning = log ( warning ) ;