@ external ( "__aspect" , "logReflectedValue" ) declare function logReflectedValue ( value ) ; let ignoreLogs = false ; export function __ignoreLogs ( value ) { ignoreLogs = value ; } @ global export function log < T > ( value ) { if ( ignoreLogs ) return ; let reflectedId = Reflect . toReflectedValue < T > ( value ) ; Reflect . attachStackTrace ( reflectedId ) ; logReflectedValue ( reflectedId ) ; }