A Babel plugin for automatically injecting detailed function entry and exit log statements into JavaScript code. Version 0.0.5 is the latest. The plugin instruments every function call with colored entry/exit logs including argument values, return values, and nested call indentation. It integrates with log management tools and supports options for function blacklisting, blackout lists, external JSON storage, and time profiling. Differentiates from simple logging libraries by being compile-time, thus requiring no runtime changes and providing full call tree visibility.
npm install babel-plugin-shotgun-logsVerified import paths — ran on the pinned version, not inferred.
Shows installation, Babel configuration, and an example of instrumented function entry/exit logs.
Configure Babel to exclude node_modules by default or use include/exclude patterns.
Set entryLogShowFullArgs to false or use storeJSONexternally with a reasonable sizeThreshold.
Use @babel/preset-typescript to strip types before this plugin runs, or use babel-plugin-ts2js.
Ensure AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set properly and restricted to the specific bucket.
Add @babel/plugin-transform-runtime and @babel/runtime to your Babel config.
Set entryLogShowFullArgs to false or ensure all function arguments are defined.
Install aws-sdk: npm install aws-sdk --save-dev
No dependency data recorded yet.